Agnic

Tokens

API token management

GET/api/tokens

List API Tokens

List all API tokens for the authenticated user.
Auth:OAuth2

Responses

200Tokens retrieved successfully
array of
FieldTypeDescription
idstring
labelstring
maxPerTransactionnumber
dailyLimitnumber
monthlyLimitnumber
networksstring[]
show nested schema
array of
string
createdAtstring<date-time>
revokedboolean
401Unauthorized - invalid or missing authentication
FieldTypeDescription
errorstring
error_descriptionstring
messagestring

Example (cURL)

curl -X GET 'https://api.agnic.ai/api/tokens' \
  -H 'X-Agnic-Token: YOUR_TOKEN'
POST/api/generate-n8n-token

Create API Token

Generate a new API token with specified spending limits.
Auth:OAuth2

Request body *

FieldTypeDescription
maxPerTransaction*number
Maximum payment per transaction in USD
dailyLimit*number
Daily spending limit in USD
monthlyLimit*number
Monthly spending limit in USD
networks"base" | "solana"[]
show nested schema
array of
"base" | "solana"
labelstring
Optional label for the token

Responses

200Token created successfully
FieldTypeDescription
tokenstring
The API token (only shown once)
idstring
labelstring
400Bad request
FieldTypeDescription
errorstring
error_descriptionstring
messagestring
401Unauthorized - invalid or missing authentication
object — circular

Example (cURL)

curl -X POST 'https://api.agnic.ai/api/generate-n8n-token' \
  -H 'X-Agnic-Token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"key":"value"}'
POST/api/revoke-token

Revoke API Token

Revoke an existing API token.
Auth:OAuth2

Request body *

FieldTypeDescription
tokenId*string
ID of the token to revoke

Responses

200Token revoked successfully
FieldTypeDescription
successboolean
messagestring
401Unauthorized - invalid or missing authentication
FieldTypeDescription
errorstring
error_descriptionstring
messagestring
404Token not found

Example (cURL)

curl -X POST 'https://api.agnic.ai/api/revoke-token' \
  -H 'X-Agnic-Token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"key":"value"}'