Get the current business
/meReturns the business the API key belongs to and the key's name. Use it to check that a key works.
Responses
- 200 OK The business and the API key of this request. Me
Show fields
businessobject requiredShow fields
idinteger requirednamestring | null requiredThe business name, as shown in the Lynked dashboard.
api_keyobject requiredShow fields
namestring requiredThe name given to the key when it was created.
- 401 Unauthorized The API key is missing, invalid or revoked. Error
Show fields
messagestring requiredWhat went wrong, in English. The text may change; use
error_codein your code.error_codestringStable machine-readable code of the problem, for example
api_key_invalid. Present on every error that has a specific cause; see Errors for the list.error_uidstring requiredIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 403 Forbidden The Public API is disabled for this business. Error
Show fields
messagestring requiredWhat went wrong, in English. The text may change; use
error_codein your code.error_codestringStable machine-readable code of the problem, for example
api_key_invalid. Present on every error that has a specific cause; see Errors for the list.error_uidstring requiredIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 422 Unprocessable Entity The request is invalid; `errors` lists the problems per field. ValidationError
Show fields
messagestring requiredAll problems in one line.
errorsobject requiredRequest field path → its problems.
error_uidstring requiredIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 429 Too Many Requests More than 120 requests per minute for this business. Error
Headers: Retry-After
Show fields
messagestring requiredWhat went wrong, in English. The text may change; use
error_codein your code.error_codestringStable machine-readable code of the problem, for example
api_key_invalid. Present on every error that has a specific cause; see Errors for the list.error_uidstring requiredIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 500 Internal Server Error Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the `error_uid`. Error
Show fields
messagestring requiredWhat went wrong, in English. The text may change; use
error_codein your code.error_codestringStable machine-readable code of the problem, for example
api_key_invalid. Present on every error that has a specific cause; see Errors for the list.error_uidstring requiredIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
curl 'https://api.lynked.ie/api/public/v1/me' \
-H 'Authorization: Bearer lk_live_...'
{
"business": {
"id": 42,
"name": "Corner Coffee"
},
"api_key": {
"name": "CRM"
}
}