Skip to content
SynupAPI
Get an API key
POSTapi.synup.com/api/v4/connected-accounts/connect-apple

Connect link for Apple

Generates an Apple Business Connect OAuth link for a single location. Redirect the user to the returned url to authorize the connection; on completion Apple redirects back to your successUrl (or errorUrl on failure). The link is valid for 1 day.

Apple OAuth link variants:

  • Connect link for Apple — connects a single location (this endpoint; takes a locationId).
  • Bulk connect link for Apple — connects multiple locations in one flow (account/platform-scoped; no locationId).
  • Renew connect link for Apple — re-authorizes an expired or revoked token for an existing connection.
Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Body

NameTypeRequiredDescription
inputobjectrequired
input.locationIdstringrequiredRelay-encoded location ID to connect.
input.successUrlstringrequiredRedirect URL on successful authorization.
input.errorUrlstringrequiredRedirect URL on failed authorization.
input.clientMutationIdstringoptional

Request

Request
curl -X POST 'https://api.synup.com/api/v4/connected-accounts/connect-apple' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "locationId": "TG9jYXRpb246MQ==",
    "successUrl": "https://app.synup.com/apple/success",
    "errorUrl": "https://app.synup.com/apple/error"
  }
}'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "connectLinkForApple": {
      "success": true,
      "url": "string",
      "errors": [
        {
          "code": "string",
          "message": "string",
          "contextInfo": [
            {}
          ]
        }
      ],
      "clientMutationId": "string"
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.connectLinkForAppleobjectoptional
data.connectLinkForApple.successbooleanoptional
data.connectLinkForApple.urlstringoptionalOAuth link to redirect the user to (1-day TTL).
data.connectLinkForApple.errorsarray of objectoptional
data.connectLinkForApple.errors[].codestringoptional
data.connectLinkForApple.errors[].messagestringoptional
data.connectLinkForApple.errors[].contextInfoarray of objectoptional
data.connectLinkForApple.clientMutationIdstringoptional