The Lynked Public API is in development. Endpoints will appear here as they go live.

Get the current business

GET
/me

Returns 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
    • business object required
      Show fields
      • id integer required
      • name string | null required

        The business name, as shown in the Lynked dashboard.

    • api_key object required
      Show fields
      • name string required

        The name given to the key when it was created.

  • 401 Unauthorized The API key is missing, invalid or revoked. Error
    Show fields
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable 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_uid string required

      Identifier 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
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable 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_uid string required

      Identifier 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
    • message string required

      All problems in one line.

    • errors object required

      Request field path → its problems.

    • error_uid string required

      Identifier 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
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable 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_uid string required

      Identifier 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
    • message string required

      What went wrong, in English. The text may change; use error_code in your code.

    • error_code string

      Stable 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_uid string required

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

Request
curl 'https://api.lynked.ie/api/public/v1/me' \
  -H 'Authorization: Bearer lk_live_...'
Response 200 OK
{
  "business": {
    "id": 42,
    "name": "Corner Coffee"
  },
  "api_key": {
    "name": "CRM"
  }
}