Get customers
const url = 'https://api-uat.flinkey.de/v3/customers';const options = { method: 'GET', headers: {'flinkey-API-Key': '<flinkey-API-Key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-uat.flinkey.de/v3/customers \ --header 'Authorization: Bearer <token>' \ --header 'flinkey-API-Key: <flinkey-API-Key>'Purpose
Retrieve all customer contexts that the authenticated API Manager is authorized to access.
This is the first protected endpoint used after token retrieval. It verifies the effective API Manager scope and returns the customer IDs that can be used for subsequent customer-scoped requests.
The request does not require a Customer-ID header. The response is an array because an API Manager can reach one or more customer contexts.
When to use this operation
Use this operation when the partner backend needs to discover or validate the customer contexts available to the authenticated API Manager.
Typical situations:
- initial integration setup,
- backend configuration validation,
- checking which customer contexts the API Manager can reach,
- verifying UAT or PROD configuration,
- retrieving the IDs and names available for subsequent customer-scoped requests,
- troubleshooting authorization or customer-context issues.
In most integrations, the intended Customer-ID should be selected from this response and then configured for subsequent customer-scoped requests.
Validation notes
PROD validation result:
GET /customerswas successfully executed withflinkey-API-KeyandAuthorization: Bearer {{accessToken}}, without aCustomer-IDheader.- The endpoint returned all customer contexts reachable by the authenticated API Manager.
- The response is an array.
idis returned as number.nameis returned as string.$topis supported.$skipis supported.$filteris supported.$orderbyis supported.$selectis not supported; using$selectreturns no result.
Async behavior
Synchronous.
The customer context is returned directly in the API response.
Webhook result
No.
This operation does not produce a webhook result.
Security notes
Never log:
flinkey-API-Key,- bearer token,
- full request headers.
For standard partner integrations, the mobile app must not receive API Manager credentials, backend bearer tokens or the flinkey-API-Key.
Use placeholders in documentation, examples, screenshots and AI prompts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Not required; omitting it allows the endpoint to list all customer contexts reachable by the API Manager
Responses
Section titled “Responses”Reachable customer contexts were retrieved successfully
object
Customer database ID
Customer name
Example
[ { "id": 123, "name": "Example Fleet GmbH" }]Request is invalid
Recommended handling: Check headers and request format
Invalid subscription key or missing / invalid access token
Recommended handling: Check flinkey-API-Key, bearer token and environment configuration
API Manager context could not be resolved
Recommended handling: Check API Manager credentials and environment
Server-side error
Recommended handling: Retry later if appropriate and escalate if persistent
