Bootstrap access request

Initial access bootstrap request signed without an Authorization header.

grant-request
Request typeaccess bootstrap
Vector namegrant-request
{
  "method": "POST",
  "url": "https://auth.example.com/grants",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json"
  },
  "body": "{\"client\":\"https://wallet.example.com/alice\",\"access_token\":{\"access\":[{\"type\":\"incoming-payment\",\"actions\":[\"create\",\"read\"]}]}}"
}

Quote request

Protected quote request carrying a GNAP access token bound to the client key.

protected-request
Request typequote request
Vector namequote-request
{
  "method": "POST",
  "url": "https://rs.example.com/quotes",
  "headers": {
    "accept": "application/json",
    "authorization": "GNAP access_token=\"quote-token\"",
    "content-type": "application/json"
  },
  "body": "{\"receiver\":\"https://wallet.example.com/bob\",\"method\":\"ilp\",\"sourceAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"1250\"}}"
}

Incoming payment

Resource write flow for creating an incoming payment with digest coverage.

resource-write
Request typeincoming payment
Vector nameincoming-payment
{
  "method": "POST",
  "url": "https://rs.example.com/incoming-payments",
  "headers": {
    "accept": "application/json",
    "authorization": "GNAP access_token=\"incoming-token\"",
    "content-type": "application/json"
  },
  "body": "{\"walletAddress\":\"https://wallet.example.com/alice\",\"incomingAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"2500\"},\"expiresAt\":\"2026-12-31T23:59:59.000Z\"}"
}

Outgoing payment

Protected resource write flow for creating an outgoing payment request.

resource-write
Request typeoutgoing payment
Vector nameoutgoing-payment
{
  "method": "POST",
  "url": "https://rs.example.com/outgoing-payments",
  "headers": {
    "accept": "application/json",
    "authorization": "GNAP access_token=\"outgoing-token\"",
    "content-type": "application/json"
  },
  "body": "{\"quoteId\":\"https://rs.example.com/quotes/123\",\"receiver\":\"https://wallet.example.com/bob\",\"debitAmount\":{\"assetCode\":\"USD\",\"assetScale\":2,\"value\":\"1250\"}}"
}