Get App Context
Get information about the application and the current user.
Endpoint: GET /app_context
Headers:
x-api-key(required) - Your application’s API keyx-api-secret(required) - Your application’s API secret
User Authentication (optional or required):
If your app allows anonymous access, user authentication is optional. Otherwise, include one of:
Authorization: Bearer <session_token>x-api-license-code: <license_code>+x-hardware-id(if device auth enabled)x-api-username+x-api-password+x-hardware-id(if device auth enabled)
Response:
{
"application": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Desktop App",
"variables": [
{
"name": "api_url",
"value": "https://api.example.com"
},
{
"name": "feature_flag",
"value": "enabled"
}
],
"files": [
{
"id": "789e0123-e89b-12d3-a456-426614174000",
"name": "config.json",
"mime_type": "application/json",
"is_encrypted": false
}
]
},
"user": {
"id": "456e7890-e89b-12d3-a456-426614174000",
"username": "john_doe",
"membership": {
"is_active": true
}
}
}If not authenticated or anonymous access is allowed, user will be null.
Errors:
401- “Only logged in users are allowed to access” - When anonymous access is disabled401- Invalid credentials403- Inactive membership
Last updated on