Get the caller
const url = 'https://api.sendwing.app/api/me';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
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.sendwing.app/api/me \ --header 'x-api-key: <x-api-key>'Who the API key or access token is: the key and its workspace, or the connected app, the member who connected it and their workspace. Use it to check a credential, and to find the organizationId other routes need.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The caller
object
object
The workspace the member connected
The member who connected the app
The member’s email
The scopes the member granted
What the app can do: what its scopes grant, within the member’s role
object
Example
{ "type": "apiKey"}The API key or access token is missing, invalid or expired
object
What went wrong, in words you can show people
For a 400: each invalid field, by its path in the request, like events.0.name
object
For a 5xx: quote it when contacting support
Example generated
{ "error": "example", "issues": [ { "path": "example", "message": "example" } ], "requestId": "example"}Too many requests; wait for the seconds in Retry-After
object
What went wrong, in words you can show people
For a 400: each invalid field, by its path in the request, like events.0.name
object
For a 5xx: quote it when contacting support
Example generated
{ "error": "example", "issues": [ { "path": "example", "message": "example" } ], "requestId": "example"}