Test the connection
Returns your organisation and the scopes of the key or token you sent.
GET /v1/automation/me
Returns your organisation and the scopes of the key or token you sent. Use it to check that a key works.
| Property | Value |
|---|---|
| Authentication | API key or OAuth access token: Authorization: Bearer ... |
| Scope | responses.read |
| Success | 200 OK |
Response
200 OK
| Field | Type | Description |
|---|---|---|
tenantId |
string (uuid) | Your organisation's id. |
organisation |
string | Your organisation's name. |
authKind |
enum | api_key for an API key, oauth_client for an OAuth access token. One of api_key, oauth_client. |
scopes |
array of string | The scopes the key or token holds. |
{
"tenantId": "3f6c1a2e-8b4d-4c7a-9e21-5d0b7f3a9c10",
"organisation": "Example Trading Co.",
"authKind": "api_key",
"scopes": [
"responses.read"
]
}Errors
Errors have the body { "code": "...", "message": "...", "requestId": "..." }. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | INVALID_API_KEY |
The API key or access token is missing, wrong, revoked or expired. |
| 403 | API_KEY_SCOPE |
The key or token does not hold the scope this operation needs. |
| 403 | IP_NOT_ALLOWED |
An OAuth access token was used from an address outside its client's allow-list. |
| 403 | ENTITLEMENT_REQUIRED |
Your plan does not include API access. |
| 429 | RATE_LIMITED |
Too many requests. Wait for the number of seconds in the Retry-After header. |
Example request
curl -X GET "https://api.sayvara.com/v1/automation/me" \
-H "Authorization: Bearer $SAYVARA_API_KEY"Was this page helpful?
Thanks. Need more help? Email support@sayvara.com