Skip to content

Takes a user ID and returns a temporary token that can be exchanged for a real auth token.

Request

Security
oauth2(Required scopes: auth:exchange-token) or bearerAuth or apiKeyHeader
Bodyapplication/jsonrequired
userIdstring(AnyId)^ext-|^[A-Z][A-Z0-9]-[A-Z0-9]+-[A-Z0-9]+|^\d+$write-onlyrequired

Peach's unique or lender's external identifier.

POST
/auth/exchange-token
curl -i -X POST \
  https://sandboxapi.peach.finance/api/auth/exchange-token \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "userId": "string"
  }'

Responses

Success

Bodyapplication/json
dataobject
Response
{ "data": { "exchangeToken": "string" } }