Skip to content
GitHub

Grant Request

POST
/

Make a new grant request

Request Body required

One of:
object
subject

Information about the subject for which the client is requesting information

object
sub_id_formats
required

The formats of subject identifiers that the client can accept

Array<string>
unique items
Allowed values: uri
sub_ids
required

Specific identifiers for the subject for which the client is requesting information

Array<string>
>= 1 items
Examples
{
"access_token": {
"access": [
{
"type": "outgoing-payment",
"actions": [
"create",
"read"
],
"identifier": "https://ilp.interledger-test.dev/alice",
"limits": {
"receiver": "https://ilp.interledger-test.dev/incoming-payments/45a0d0ee-26dc-4c66-89e0-01fbf93156f7",
"interval": "R12/2019-08-24T14:15:22Z/P1M",
"debitAmount": {
"value": "500",
"assetCode": "USD",
"assetScale": 2
}
}
}
]
},
"client": "https://webmonize.com/.well-known/pay",
"interact": {
"start": [
"redirect"
],
"finish": {
"method": "redirect",
"uri": "https://webmonize.com/return/876FGRD8VC",
"nonce": "4edb2194-dbdf-46bb-9397-d5fd57b7c8a7"
}
}
}

Responses

200

OK

One of:
object
interact
required
object
redirect
required

The URI to direct the end user to.

string format: uri
finish
required

Unique key to secure the callback.

string
continue
required

If the AS determines that the request can be continued with additional requests, it responds with the continue field.

object
access_token
required

A unique access token for continuing the request, called the “continuation access token”.

object
value
required
string
uri
required

The URI at which the client instance can make continuation requests.

string format: uri
wait

The amount of time in integer seconds the client instance MUST wait after receiving this request continuation response and calling the continuation URI.

integer
Examples
{
"interact": {
"redirect": "https://auth.interledger-test.dev/4CF492MLVMSW9MKMXKHQ",
"finish": "4105340a-05eb-4290-8739-f9e2b463bfa7"
},
"continue": {
"access_token": {
"value": "33OMUKMKSKU80UPRY5NM"
},
"uri": "https://auth.interledger-test.dev/continue/4CF492MLVMSW9MKMXKHQ",
"wait": 30
}
}

400

Bad Request

One of:
object
error
object
description
string
code
string
Allowed values: invalid_request

401

Unauthorized

object
error
object
description
string
code
string
Allowed values: invalid_client

500

Internal Server Error

object
error
object
description
string
code
string
Allowed values: request_denied