curl --get 'https://api.subtotal.com/link-tokens' \
--header "X-Api-Key: $SUBTOTAL_API_KEY" \
--data-urlencode 'customer_id=customer-example-001' \
--data-urlencode 'status=active'
{
"link_tokens": [
{
"customer_id": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Link Tokens
List Link Tokens
List link-token metadata without returning bearer secrets or consumer contact fields
GET
/
link-tokens
curl --get 'https://api.subtotal.com/link-tokens' \
--header "X-Api-Key: $SUBTOTAL_API_KEY" \
--data-urlencode 'customer_id=customer-example-001' \
--data-urlencode 'status=active'
{
"link_tokens": [
{
"customer_id": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}curl --get 'https://api.subtotal.com/link-tokens' \
--header "X-Api-Key: $SUBTOTAL_API_KEY" \
--data-urlencode 'customer_id=customer-example-001' \
--data-urlencode 'status=active'
X-Api-Key or an OAuth access token with connections:read. An active client and the customer_id query parameter are required. Optionally filter by active, expired, or revoked.
Returns metadata only, with no raw tokens or resource IDs and no pagination. See token recovery and lifecycle.Query Parameters
Required string length:
1 - 64Available options:
active, expired, revoked Response
Successful Response
Show child attributes
Show child attributes