Rivier/ Reference/ workspace

Workspace connected business person token

post/connected-businesses/{id}/person-tokens

Exchange the code a person of the business came back with for a person token (once, within five minutes; it lasts 30 minutes). Calls with the platform's key, the business header and x-rivier-person: may confirm or decline a booking, as that person's act. Only where the business granted bookings:decide.

Before you call

Credential
Authorization: Bearer $KEY
Scope
workspace:admin
Graphql
Mutation.workspaceConnectedBusinessPersonToken
Sdk
workspace.connectedBusiness.personToken
Cli
workspace connected business person token

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • codestringrequired
    At most 200 characters.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown