For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

See how you can authenticate with TransactionLink.

All API requests must be made over HTTPS. Any requests made over HTTP will fail.

POST Authorize token

Deprecated

Authorize workspace (deprecated)

post

Deprecated — This endpoint issues a JWT Bearer token (accessToken) for workspace authentication. JWT-based authentication is deprecated in favor of organization tokens (tot_). Use organization tokens obtained from the dashboard instead of this endpoint.

Body
keystringRequired

Workspace API key

secretstringRequired

Workspace API secret

Responses
200

OK – JWT tokens issued

application/json
accessTokenstringRequired

JWT access token (Bearer)

refreshTokenstringRequired

Refresh token for obtaining a new access token

tokenTypestringRequired

Token type — always Bearer

Example: Bearer
expiryDurationinteger · int64Required

Token validity duration in seconds

post/auth/authorize
POST /auth/authorize HTTP/1.1
Host: api.transactionlink.io
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "key": "your-workspace-key",
  "secret": "your-workspace-secret"
}
{
  "accessToken": "eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjYyZWY1YjRiLTU0MDEtNGU3Ni1hYmMzLTkzZTdkOGZiY2JhNyJ9.",
  "refreshToken": "dGhpcyBpcyBhIHJlZnJlc2ggdG9rZW4gZXhhbXBsZQ==",
  "tokenType": "Bearer",
  "expiryDuration": 3600
}

POST Refresh access token

Deprecated

Refresh JWT token (deprecated)

post

Deprecated — This endpoint refreshes a JWT Bearer token using a refresh token. JWT-based authentication is deprecated in favor of organization tokens (tot_). Use organization tokens obtained from the dashboard instead of this endpoint.

Body
refreshTokenstringRequired

Refresh token obtained from a previous authorization

Responses
200

OK – new JWT tokens issued

application/json
accessTokenstringRequired

JWT access token (Bearer)

refreshTokenstringRequired

Refresh token for obtaining a new access token

tokenTypestringRequired

Token type — always Bearer

Example: Bearer
expiryDurationinteger · int64Required

Token validity duration in seconds

post/auth/refresh
POST /auth/refresh HTTP/1.1
Host: api.transactionlink.io
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "refreshToken": "dGhpcyBpcyBhIHJlZnJlc2ggdG9rZW4gZXhhbXBsZQ=="
}
{
  "accessToken": "eyJhbGciOiJub25lIn0.eyJ3b3Jrc3BhY2VJZCI6IjYyZWY1YjRiLTU0MDEtNGU3Ni1hYmMzLTkzZTdkOGZiY2JhNyJ9.",
  "refreshToken": "dGhpcyBpcyBhIHJlZnJlc2ggdG9rZW4gZXhhbXBsZQ==",
  "tokenType": "Bearer",
  "expiryDuration": 3600
}

GET Public key

Obtain public key

get
/auth/webhooks/key/{keyId}

Public key for validating webhook JWS signatures

Path parameters
keyIdstring · uuidRequired

UUID of the key, returned as kid parameter in webhook JWS header

Query parameters
pembooleanOptional

Param indiciating whether public key should be returned in PEM format or simple base64

Default: true
Responses
200

Public key obtained successfully

text/plain
stringOptional
get/auth/webhooks/key/{keyId}
GET /auth/webhooks/key/{keyId} HTTP/1.1
Host: api.sandbox.transactionlink.io
Accept: */*
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiTu+U0W+NitQY1YEFCrj
vZJPdICHaGEUtHyETr7RvtfikDb0pSb97us0NtLJsDitXWDw8cqLp7qrI90IsjY4
qR1NHI1q1TLQdDJmOvd5b6Fglas9p5fN5ODNRcF3hz5f77cPBqNwKBrdzqubEsOw
y+5amL4SIcrsq9KiO/YjAQh7YTBTZviAY7gJKqrbIGzcWpzWdcLnWn2/YgPUlY1K
wy6XzpUWRLpWc2BhRyEwiIhlAEfh0nfBBzlkXyLm4VGscCd7Sj+ExJ/4vhYSOG8C
bufO/BbxEC1zH6S1Y59crbpcw1Wn64EdnFx2AVn6YXzZrgeuT/QdpCIfLbVU9zSS
0wIDAQAB
-----END PUBLIC KEY-----

Last updated