Skip to content
Docs
Esc
↑↓navigate↵open⌘Jpreview

What may spend this wallet.

Lists what may spend the wallet’s tokens: allowances, Permit2 sub-allowances and SPL delegates, the largest value at risk first.

GET/v1/me/wallets/{id}/approvals
Authorization
sessionAPI key · cookierequired

An opaque, revocable INVICTUS session set by createSession.

Path parameters
idstringrequired

The wallet as family:address.

matches ^(evm|solana):[A-Za-z0-9]{1,57}$
Query parameters
chainstring

Only approvals on this chain.

Allowed:solanaethereumbaserobinhoodbscarchyperevm
cursorstring

The nextCursor of the previous page.

min length 1 · max length 64
limitinteger

How many approvals per page.

min 1 · max 100 · default: 50
Header parameters
X-Telegram-Userstring

With the service credential: the linked Telegram user the call acts for.

matches ^[0-9]{1,20}$
Responses
200

Success.

itemsApproval[]required
max items 100
Show properties
Array of Approval
chainstringrequired

The chain of the approval.

Allowed:solanaethereumbaserobinhoodbscarchyperevm
tokenTokenRefrequired

The token that may be spent.

Show properties
chainstringrequired

A chain by its slug.

Allowed:solanaethereumbaserobinhoodbscarchyperevm
addressstring | nullrequired

The contract or mint on its chain; null for the native coin.

Show properties
Any of:
string
string
null
null
symbolstringrequired

The ticker the token gives itself.

min length 1 · max length 64
namestringrequired

The name the token gives itself.

min length 1 · max length 128
logostring | nullrequired

The logo on INVICTUS's CDN, or null when there is none.

Show properties
Any of:
string
string
null
null
decimalsintegerrequired

The decimals its base units are read at.

min 0 · max 36
spenderobjectrequired

Who may spend it.

Show properties
addressstringrequired

The spender's address.

min length 1 · max length 64
labelstring | nullrequired

A known router or position manager; null when unknown.

Show properties
Any of:
string
string
null
null
viastringrequired

A direct allowance, a Permit2 sub-allowance, or an SPL delegate.

Allowed:directpermit2spl-delegate
allowanceUnitsrequired

How much may be spent, in the token's base units.

matches ^(?:0|[1-9][0-9]{0,77})$
unlimitedbooleanrequired

True when the allowance has no practical limit.

expiresAtinteger | nullrequired

When a Permit2 sub-allowance expires, in Unix seconds; null when it does not.

Show properties
Any of:
integer
integer
null
null
valueAtRiskUsdUsdValuerequired

What the spender could take now, in US dollars.

Show properties
One of:
object
statusstringrequired

Current and from a trusted read.

valueDecimalrequired

An exact decimal number as text; never a binary float (IEEE 754).

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
observedAtintegerrequired

When the value was read, in Unix seconds.

min 0 · max 9007199254740991
object
statusstringrequired

Older than its freshness bound; shown with its age.

valueDecimalrequired

An exact decimal number as text; never a binary float (IEEE 754).

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
observedAtintegerrequired

When the value was read, in Unix seconds.

min 0 · max 9007199254740991
object
statusstringrequired

Resting on one source, not yet confirmed.

valueDecimalrequired

An exact decimal number as text; never a binary float (IEEE 754).

max length 80 · matches ^-?[0-9]+(?:\.[0-9]+)?$
observedAtintegerrequired

When the value was read, in Unix seconds.

min 0 · max 9007199254740991
sourcestringrequired

The source the value rests on.

min length 1 · max length 40
object
statusstringrequired

Two sources disagree; both values are given.

valuesany[]required

The two values that disagree, each with its source.

min items 2 · max items 2
observedAtintegerrequired

When the value was read, in Unix seconds.

min 0 · max 9007199254740991
object
statusstringrequired

No value; never shown as zero.

reasonstringrequired

Why there is no value; it is never zero.

min length 1 · max length 200
sinceintegerrequired

When the approval was granted, in Unix seconds.

min 0 · max 9007199254740991
nextCursorstring | nullrequired

The cursor of the next page, or null on the last page.

Show properties
Any of:
string
string
null
null
asOfintegerrequired

A point in time: Unix time in whole seconds, UTC.

min 0 · max 9007199254740991
400

Invalid input; errors names the fields.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
401

No session, or it ended.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
404

Not found, or not yours.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
429

Too many requests; retryAfterSeconds says when to ask again.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
500

Server error.

typestring<uri-reference>required

A URI reference naming the problem type; about:blank when only the status says it.

max length 200
titlestringrequired

A short summary of the problem type, the same for every occurrence.

max length 200
statusintegerrequired

The HTTP status code of this answer.

min 400 · max 599
detailstring

What went wrong this time, for a person to read.

max length 500
instancestring<uri-reference>

A URI reference of this occurrence, quoted to support.

max length 200
codestringrequired

What a client branches on, stable across releases.

matches ^[a-z][a-z0-9_]{0,63}$
retryAfterSecondsinteger

Seconds to wait before asking again, on 429 and 503; the Retry-After header agrees.

max 9007199254740991
errorsobject[]

The fields that were refused, on 400.

max items 50
Show properties
Array of object
fieldstringrequired

The refused field, as a JSON path into the request.

max length 200
codestringrequired

Why it was refused, stable across releases.

max length 64
messagestring

The reason, for a person to read.

max length 200
Try it
Server
Authorization
Parameters
Request
curl -X GET '/v1/me/wallets/evm%3A0x4200000000000000000000000000000000000006/approvals' \
  -H 'Cookie: session=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "items": [
    {
      "chain": "base",
      "token": {
        "chain": "base",
        "address": "string",
        "symbol": "string",
        "name": "string",
        "logo": "string",
        "decimals": 0
      },
      "spender": {
        "address": "string",
        "label": "string"
      },
      "via": "direct",
      "allowance": "1500000",
      "unlimited": true,
      "expiresAt": 1793145600,
      "valueAtRiskUsd": {
        "status": "exact",
        "value": "1234.56",
        "observedAt": 1793145600
      },
      "since": 1793145600
    }
  ],
  "nextCursor": "string",
  "asOf": 1793145600
}