Rotate a Payout Agent Credential
Issue a replacement credential with the same name and revoke this one immediately. The response is the replacement, and is the only time its `token` is returned.
Issue a replacement credential with the same name and revoke this one immediately. The response is the replacement, and is the only time its token is returned.
api_keyAuthorizationBasic <token>payout_agent_id*stringID of the payout agent.
uuidcredential_id*stringID of the credential.
uuidCreated
application/json- response
The replacement credential, including its one-time token.
id?stringuuidobject?stringpayout_agent_id?stringuuidname?stringtoken?stringThe bearer token, such as dots_agent_prod_.... Returned only when the credential is created or rotated. Store it securely; it cannot be retrieved again.
token_last_four?stringLast four characters of the token.
active?booleanfalse once the credential is revoked or rotated.
revoked_at?|date-timelast_used_at?|When the credential last authenticated a request, accurate to about five minutes.
date-timecreated?stringdate-timecurl -X POST 'https://api.dots.dev/api/v2/payout-agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/credentials/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "object": "payout_agent_credential", "payout_agent_id": "79fb14fc-ce5a-4ca6-83f8-93ffe10240da", "name": "string", "token": "string", "token_last_four": "string", "active": true, "revoked_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z"}Create a Payout Agent Credential
Issue a credential that authenticates as the payout agent on the Payout Agent API. The response is the only time `token` is returned; Dots stores only a hash of it. A payout agent can have several active credentials.
Revoke a Payout Agent Credential
Revoke a credential. Requests that use it are rejected immediately. Revoking a revoked credential succeeds without changing it. The credential stays in the list with `active` set to `false`.