A customer token
post/platform-customers/{id}/tokens
A customer token: the platform vouches, with its secret key, for one of its customers whom its own sign-in has recognised, for a few minutes (10 by default, at most 60), naming one connected business or none. Rivier keeps only its hash.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
contacts:write- Graphql
Mutation.contactsPlatformCustomerToken- Sdk
contacts.platformCustomer.token- Cli
contacts platform customer token
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- connectionIdstring (uuid)
- minutesintegerDefault: 10. At least 1. At most 60.
Responses
- 201application/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