Download OpenAPI specification:
Open Payments Authorization Server
The authorization server handles grant requests and access token management for the Open Payments protocol, using GNAP (Grant Negotiation and Authorization Protocol).
Endpoints:
POST / — initiate a grant requestPOST /continue/{id} — continue a pending grant requestDELETE /continue/{id} — cancel a pending grant requestPOST /token/{id} — rotate an access tokenDELETE /token/{id} — revoke an access tokenFor an overview of how Open Payments authorization works, see the Authorization concepts page.
Make a new grant request
required | client (string) or client (object) or client (object) (client) |
object (interact-request) The client instance declares the parameters for interaction methods that it can support using the interact field. | |
required | object |
object (subject) Information about the subject for which the client is requesting information. |
{- "access_token": {
- "access": [
- {
- "type": "outgoing-payment",
- "actions": [
- "create",
- "read"
], - "limits": {
- "interval": "R12/2019-08-24T14:15:22Z/P1M",
- "debitAmount": {
- "value": "500",
- "assetCode": "USD",
- "assetScale": 2
}
}
}
]
}, - "interact": {
- "start": [
- "redirect"
], - "finish": {
- "method": "redirect",
- "nonce": "4edb2194-dbdf-46bb-9397-d5fd57b7c8a7"
}
}
}{- "interact": {
- "finish": "4105340a-05eb-4290-8739-f9e2b463bfa7"
}, - "continue": {
- "access_token": {
- "value": "33OMUKMKSKU80UPRY5NM"
}, - "wait": 30
}
}Continue a grant request during or after user interaction.
| id required | string The unique reference ID of the grant request continuation. |
| interact_ref | string The interaction reference generated for this interaction by the AS. |
{- "interact_ref": "ad82597c-bbfa-4eb0-b72e-328e005b8689"
}{- "access_token": {
- "value": "OS9M2PMHKUR64TB8N6BW7OZB8CDFONP219RP1LT0",
- "expires_in": 3600,
- "access": [
- {
- "type": "outgoing-payment",
- "actions": [
- "create",
- "read"
], - "limits": {
- "interval": "R12/2019-08-24T14:15:22Z/P1M",
- "debitAmount": {
- "value": "500",
- "assetCode": "USD",
- "assetScale": 2
}
}
}
]
}, - "continue": {
- "access_token": {
- "value": "33OMUKMKSKU80UPRY5NM"
}, - "wait": 30
}
}Cancel a grant request or delete a grant client side.
| id required | string The unique reference ID of the grant request continuation. |
{- "error": {
- "description": "string",
- "code": "invalid_client"
}
}Management endpoint to rotate access token.
| id required | string The unique reference of the access token to be managed. |
{- "access_token": {
- "value": "OZB8CDFONP219RP1LT0OS9M2PMHKUR64TB8N6BW7",
- "expires_in": 3600,
- "access": [
- {
- "type": "outgoing-payment",
- "actions": [
- "create",
- "read"
], - "limits": {
- "interval": "R12/2019-08-24T14:15:22Z/P1M",
- "debitAmount": {
- "value": "500",
- "assetCode": "USD",
- "assetScale": 2
}
}
}
]
}
}