Developers

We ❤️ Open Source

VACenter is open source software that welcomes developers to create integrations with.

Documentation for V3.1

API Authentication

V3.1


Get the Identifier Token


The Identifier Token is your method of authentication with a VACenter instance. You can obtain the identifier from site settings, located at the bottom pictured here under the 3rd Party section:


Authentication in V3.1 is handled via a simple query on the end of a path containing the Identifier Token.

Example:
https://demo.va-center.com/api/REQUEST?auth=IDENTIFIER

Data API Minimum V3.1


Get User Data

Parameters

USERNAME: The users number (0,1,2,3,etc) or the VACode (AZVA, TAPV, etc) + users number. Example: 0, TEST0


Path:
GET: /api/data/user/USERNAME
Result:
{
    "username": 0,
    "rank": "Cadet",
    "display": "Admin",
    "profileURL": "https://icons.getbootstrap.com/assets/icons/person-circle.svg",
    "hours": 0,
    "created": "Thu Jan 01 1970 00:00:00",
    "pireps": [
        {
            "id": 2,
            "vehicle": "f4c8c41b-0e39-4c56-a984-c630f99a2a96",
            "vehiclePublic": "Air Europa - Boeing 787-9",
            "author": "0",
            "airline": "2",
            "depICAO": "KLAX",
            "arrICAO": "YMML",
            "route": "AUSV1",
            "flightTime": "0",
            "comments": "No comments.",
            "status": "n",
            "fuel": "",
            "filed": "Sun Oct 10 2021 18:07:01 GMT+1100 (Australian Eastern Daylight Time)",
            "rejectReason": null,
            "pirepImg": null
        }
    ]
}

Get PIREP

Parameters

ID: The PIREP ID (0,1,2,3,etc) Example: 0


Path:
GET: /api/data/pirep/ID
Result:
{
    "id": 2,
    "vehicle": "f4c8c41b-0e39-4c56-a984-c630f99a2a96",
    "vehiclePublic": "Air Europa - Boeing 787-9",
    "author": "0",
    "airline": "2",
    "depICAO": "KLAX",
    "arrICAO": "YMML",
    "route": "AUSV1",
    "flightTime": "0",
    "comments": "No comments.",
    "status": "n",
    "fuel": "123",
    "filed": "Sun Oct 10 2021 18:07:01 GMT+1100 (Australian Eastern Daylight Time)",
    "rejectReason": null,
    "pirepImg": null
}

Stats


Path:
GET: /api/data/stats
Result:
{
    "popularCraft": "Air Europa - Boeing 787-9",
    "leadPilot": [
    0,
    2.05
    ],
    "totalHours": 2.05,
    "pirepsLength": 3
}
...