Authentication
Initiate a request to obtain an authentication token for accessing protected API endpoints. In order to perform authenticated operations, you must first obtain a token by calling this endpoint. If the request is denied, Fotokite Live may prompt the operator for authorization, depending on system configuration. The Fotokite API key can be provided via basic auth or in the request body.
Provide a Fotokite API key as a HTTP basic auth password (user name is ignored).
Request to obtain a session token. Compatible with OAuth2 client_credentials flow.
OAuth2 flow type, only "client_credentials" is supported.
client_credentialsIgnored (For OAuth compatibility)
Fotokite API key. Contact Fotokite support to get an API key assigned and activated for your systems.
1234567890qwertyuiopAvailable OAuth2 scopes:
read- Grants access to retrieve system data and information.control- Allows sending commands to control the system.can_override- Allows to makehandoff/control/overridecall to override current controlling client.experimental- Enables access to experimental API features.internal- Fotokite-internal functions. Not for third-party use.
Name of the token for display to the operator if there can be multiple sessions per plugin.
Flight ControllerToken issued
OAuth2 compatible access token response.
Unique ID of the session, used to identify the session in the system.
234Unique ID of the plugin (API) key used to create this session.
pluginABName of the plugin (API) key used to create this session.
Plugin ABScopes granted to this session token.
["read","control"]Name of the session for display to the operator.
Flight ControllerTimestamp when this token expires and will no longer be valid.
Timestamp when this token was created.
Token to use for future requests.
ABCD-WXYZ-1234-5678-PQRSUnauthorized - Invalid or missing API key
Forbidden - API key valid but insufficient permissions
POST /api/v1/auth/token/request HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"grant_type": "client_credentials",
"client_id": "",
"client_secret": "1234567890qwertyuiop",
"scope": "read control",
"token_name": "Flight Controller"
}{
"id": 234,
"plugin_id": "pluginAB",
"plugin_name": "Plugin AB",
"scopes": [
"read",
"control"
],
"name": "Flight Controller",
"valid_until": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"access_token": "ABCD-WXYZ-1234-5678-PQRS"
}Invalidate the token used for calling the endpoint.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Token invalidated
No content
Unauthorized - Invalid or missing API Token
Forbidden - Token valid but insufficient permissions
Not found - Specified session does not exist
POST /api/v1/auth/token/invalidate HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Returns a list of active tokens
- : Grants access to retrieve system data and information.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
List of sessions
OAuth2 compatible access token response.
Unique ID of the session, used to identify the session in the system.
234Unique ID of the plugin (API) key used to create this session.
pluginABName of the plugin (API) key used to create this session.
Plugin ABScopes granted to this session token.
["read","control"]Name of the session for display to the operator.
Flight ControllerTimestamp when this token expires and will no longer be valid.
Timestamp when this token was created.
Token to use for future requests.
ABCD-WXYZ-1234-5678-PQRSUnauthorized - Invalid or missing API key
Forbidden - API key valid but insufficient permissions
Internal error
GET /api/v1/auth/tokens HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": 234,
"plugin_id": "pluginAB",
"plugin_name": "Plugin AB",
"scopes": [
"read",
"control"
],
"name": "Flight Controller",
"valid_until": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"access_token": "ABCD-WXYZ-1234-5678-PQRS"
}
]Update the state of a plugin
- : Allows sending commands to control the system.
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Updatable fields of the plugin to report self status.
DEPRECATED: This field is still accepted for backward compatibility but will be removed in the future.
pluginABDEPRECATED: Use self_status instead. This field is still accepted for backward compatibility but will be removed in the future. Possible values:
Disabled- Operator has not enabled this plugin yet.Enabled- Operator has enabled the plugin, but there is no active sessionActive- There is at least one session using the plugin key.Connected- The plugin has reported that it is operational on any session.Error- The plugin has reported an error on any session.
DisabledStatus reported by the plugin code about itself.
Noneor<empty string>- no additional information about the plugin status is available. This is the default status.Connected- the plugin is operational and connected to all required backend services.Warning- a situation that requires operator attention but is not critical occurred.Error- an error occurred and must be addressed by the operator.
ConnectedFree-form status text reported by the plugin itself or by internal plugins. This is shown to the operator in the UI together with the state. There is no hard limit on the content of this field, but it is recommended to keep it concise and operator-friendly. Recommended max length is 160 characters. To reset the status text, send an empty string.
Couldn't connect to back-end service. Please check your Internet connection.Updated
No content
Unauthorized - Invalid or missing API key
Forbidden - API key valid but insufficient permissions
Not found - Specified plugin does not exist
Invalid parameters - Request body or parameters are malformed
Internal error
POST /api/v1/auth/plugin/update HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"self_status": "Connected",
"self_status_text": "Couldn't connect to back-end service. Please check your Internet connection."
}No content
Last updated