Authentication
See how you can authenticate with TransactionLink.
POST Authorize token
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.
Workspace API key
Workspace API secret
OK – JWT tokens issued
JWT access token (Bearer)
Refresh token for obtaining a new access token
Token type — always Bearer
BearerToken validity duration in seconds
Bad Request – invalid credentials
Internal Server Error – unexpected server error
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 — 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.
Refresh token obtained from a previous authorization
OK – new JWT tokens issued
JWT access token (Bearer)
Refresh token for obtaining a new access token
Token type — always Bearer
BearerToken validity duration in seconds
Bad Request – invalid or expired refresh token
Internal Server Error – unexpected server error
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
Public key for validating webhook JWS signatures
UUID of the key, returned as kid parameter in webhook JWS header
Param indiciating whether public key should be returned in PEM format or simple base64
truePublic key obtained successfully
Request is invalid
Public key not found
Internal service error
Upstream service failure
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