Requests to the Dwolla API require an OAuth access token for authentication. Learn about Dwolla’s supported authorization flow and how to create an access token.
client_id
and client_secret
(aka client credentials), which will be used to identify your application when calling the Dwolla API. The environment provides you with a created application once you have signed up for an account. Learn more in our Sandbox guide.
client_secret
should be kept a secret! Be sure to store your
client credentials securely.client_id
, client_secret
, and grant_type=client_credentials
for an application access token. An application access token can then be used to make calls to the Dwolla API on behalf of the application, for example, when you create a webhook subscriptiint.on, retrieve events, and interact with a Customer related endpoint.
client_id
and client_secret
for an OAuth application access token. In order to execute this flow, your application will send a POST request with the Authorization header that contains the word Basic
followed by a space and a base64-encoded string client_id:client_secret
.
Authorization: Basic Base64(client_id:client_secret)
POST https://api.dwolla.com/token
Including the Content-Type: application/x-www-form-urlencoded
header, the request is sent to the token endpoint with grant_type=client_credentials
in the body of the request:
Parameter | Required | Type | Description |
---|---|---|---|
client_id | yes | string | Application key. Navigate to https://www.dwolla.com/applications (production) or https://dashboard-sandbox.dwolla.com/applications-legacy (Sandbox) for your application key |
client_secret | yes | string | Application secret. Navigate to https://www.dwolla.com/applications (production) or https://dashboard-sandbox.dwolla.com/applications-legacy (Sandbox) for your application secret. |
grant_type | yes | string | This must be set to client_credentials . |
Authorization: Bearer {access_token_here}
InvalidAccessToken
or ExpiredAccessToken
error code. Learn more about making requests in our API docs.