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)requiredIn the path
Request bodyapplication/json, required
- codestringrequiredAt most 200 characters.
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring