Skip to content
ShiftlyDevelopers
Documentation menu

Connection

The link between your app and one business. Every access credential belongs to exactly one.

Available to every connection.

Fields

Connection fields
FieldTypeAccessMeaning
idstringRead-onlyThe connection.
state"active", "reduced"Read-onlyactive, or reduced when the person who connected the app no longer holds everything it was given.
business_idstringRead-onlyThe connected business.
business_namestringRead-onlyThe connected business's name.
granted_permissionsarray of stringRead-onlyWhat the business allowed.
effective_permissionsarray of stringRead-onlyWhat the app can use right now.
connected_attimestampRead-onlyWhen the business connected the app.

Operations

Get this connection

GET/v1/connection

Permission: any

200 response
{
  "id": "66f1c2a4b3d9e8f7a6b5c4d3",
  "state": "active",
  "business_id": "66f1c2a4b3d9e8f7a6b5c4d3",
  "business_name": "text",
  "granted_permissions": [
    "text"
  ],
  "effective_permissions": [
    "text"
  ],
  "connected_at": "2026-10-06T09:00:00+11:00"
}
Refusals
StatusWhen
400The error's code is invalid_request or range_too_long. The Errors page describes each code.
401The error's code is invalid_token or token_expired. The Errors page describes each code.
403The error's code is origin_not_allowed, permission_denied, not_available, connection_disconnected, connection_suspended or app_suspended. The Errors page describes each code.
404There is nothing at this address, or no such record in this business.
429Too many requests. Retry-After says when to try again.
500Something went wrong at Shiftly. Quote the request id.
503This environment is not set up for partner apps yet.