client tokens

Create a client token

Creates a client token with certain actions for Dwolla Drop-in components. The client token API request requires an action as well as a link which points to the Customer that identifies the end user performing the action within the drop-in component. The action is a string that contains a granular permission for the Customer performing the action within a drop-in component.

post/client-tokens

Headers

Accept'application/vnd.dwolla.v1.hal+json' required

The media type of the response. Must be application/vnd.dwolla.v1.hal+json

Request body

actionstring required

A granular permission for the Customer performing an action within a drop-in component

Example request

{
  "action": "customer.update",
  "_links": {
    "customer": {
      "href": "https://api-sandbox.dwolla.com/customers/707177c3-bf15-4e7e-b37c-55c3898d9bf4"
    }
  }
}

Response

Client token created successfully

tokenstring required

The client token that can be used with drop-in components

Example response

{
  "token": "4adF858jPeQ9RnojMHdqSD2KwsvmhO7Ti7cI5woOiBGCpH5krY"
}

Changes