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

Get the business

GET
/business

The business profile as customers see it in the Lynked app.

Responses

Success
  • 200 OKBusiness

    The business.

    8 fields
    • idinteger

      The business id, the same as in Get the current business.

    • namestring
    • descriptionstring | null
    • imagestring | null · uri

      URL of the business logo.

    • business_typeinteger

      1 Barber, 2 Cafe, 3 Restaurant / food and beverage, 4 Ice cream parlour, 5 Bakery, 6 Beauty, 7 Butchers, 8 Clothing, 9 Entertainment, 10 Florists, 11 Fruit and veg, 12 Game shops, 13 Grocery, 14 Hardware, 15 Home heating, 16 Laundrette, 17 Pet shops, 18 Pharmacy, 19 Retail, 20 Service station, 21 Sport and fitness, 22 Vape shop, 23 Wellness store, 24 Other.

      One of 123456789101112131415161718192021222324

    • website_urlstring | null
    • instagram_urlstring | null
    • facebook_urlstring | null
Errors
  • 401 UnauthorizedError

    The API key is missing, invalid or revoked.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

  • 403 ForbiddenError

    The Public API is disabled for this business.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

  • 422 Unprocessable EntityValidationError

    The request is invalid; errors lists the problems per field.

    4 fields
    • messagestring

      All problems in one line.

    • errorsobject

      Request field path → its problems.

    • error_codestring

      undefined for validation errors for now; see Errors for the list of codes.

    • error_uidstring

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

  • 429 Too Many RequestsRateLimitError

    More than 120 requests per minute for this business.

    Headers
    • Retry-Afterinteger

      Seconds to wait before the next request.

    4 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

    • retry_afterinteger

      Seconds to wait before the next request; the same value as the Retry-After header.

  • 500 Internal Server ErrorError

    Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the error_uid.

    3 fields
    • messagestring

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

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

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

Request
curl 'https://api.lynked.ie/api/public/v1/business' \
  -H 'Authorization: Bearer lk_live_...'
Response 200 OK
HTTP/3 200 OK
Content-Type: application/json
Body
{
  "id": 1205,
  "name": "Harbour Coffee",
  "description": "Specialty coffee and pastries by the harbour.",
  "image": "https://cdn.lynked.ie/places/1205/logo.png",
  "business_type": 2,
  "website_url": "https://harbourcoffee.ie",
  "instagram_url": "https://instagram.com/harbourcoffee",
  "facebook_url": "https://facebook.com/harbourcoffee"
}