Skip to main content
POST
/
token
Create token
curl --request POST \
  --url https://api.pushcash.com/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "user_lVpbPL0K1XIiHx0DxipRbD",
  "type": "apple_pay"
}'
{
  "token": "token_abc123def456"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
user_id
string
required

The Push user ID

Example:

"user_lVpbPL0K1XIiHx0DxipRbD"

type
enum<string>
required

The type of token to create

Available options:
apple_pay
Example:

"apple_pay"

Response

Token created successfully

token
string

The ID of the generated token

Example:

"token_abc123def456"