Create Authorization Token
Create a single-use Authorization Token bound to a Donor Account.
Authorization Tokens are the binding credential used to verify a donor’s identity between DAFpay and the DAF. They are used in two distinct flows:
- DAF-Initiated Setup: The DAF creates a Donor Account and then creates an Authorization Token. The DAF surfaces the token’s
codeto the donor via their portal. The donor enters thecodeinto DAFpay during profile setup, automatically approving the Donor Account. - Donor-Initiated Verification: After a donor submits a Grant Request, DAFpay automatically issues an Authorization Token and emails the
codeto the donor. The donor provides thecodeto the DAF (e.g. via a portal form or phone call). The DAF then calls Verify Authorization Token with thecodeto verify and approve the linked Donor Account.
Tokens expire 30 days after creation by default. Override the lifetime by passing expires_in (seconds) on the request body — supported range is 60 seconds to 90 days. Once a token expires it transitions to expired and can no longer be verified; create a new token to issue a fresh code.
The token’s code value is only returned once in this response. Treat it as a credential — store it securely and never log it. If the code is lost before being verified, revoke the token and create a new one.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
The request to create a new Authorization Token bound to a Donor Account. All fields are optional — an empty body produces a token with default settings.
The number of seconds the token is valid for. Defaults to 30 days. Must be between 60 (1 minute) and 7,776,000 (90 days).
Response headers
Response
The ID of the Donor Account this token is bound to.
The status of a Donor Authorization Token.
pending: The token has been issued but not yet verified.verified: The token has been verified and can no longer be used.revoked: The token was explicitly revoked before being verified.expired: The token'sexpires_athas passed and it can no longer be verified.
Time at which this token will expire and can no longer be verified. Defaults to 30 days after creation; configurable via the expires_in parameter on Create Authorization Token.
The token's secret code value.
The code is only returned in the response of Create Authorization Token. It is omitted from all other responses (Get, List). If the code is lost, revoke the token and create a new one.
The format is a 12-character alphanumeric string designed to be easy for donors to read aloud or copy. Codes are not case-sensitive when verified.
Time at which the token was verified. Only set when status is verified.
Time at which the token was revoked. Only set when status is revoked.

