APIPersonal data

List active custom-field definitions

GET
/api/v1/custom-fields

Authorization

bearerAuth custom_fields.read
AuthorizationBearer <token>

Send Authorization: Bearer <credential>. Create API keys in AirTrail Security settings. OAuth clients use authorization code with PKCE S256 and a resource identifier matching /api/v1.

In: header

Scope: custom_fields.read

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/custom-fields"
{  "data": [    {      "id": 0,      "entityType": "flight",      "key": "string",      "label": "string",      "description": "string",      "fieldType": "text",      "required": true,      "order": 0,      "defaultValue": null,      "options": null    }  ]}