Tapt
Tapt API for OAuth applications

OAuth2 authentication and authorization endpoints


POST
https://api.cards.tapt.io
/oauth/authorize/consent

Processes the user's consent decision for an authorization request. This is the delegated flow used by existing integrations such as Zapier. Organisation-owned client_credentials integrations do not call this endpoint. This endpoint is typically called after the user has logged in and granted access to the requested scopes. The response will redirect the user back to the client application with the appropriate authorization code or error.

Authorize Consent › Request Body

client_id
​string · required

The client ID of the application requesting authorization.

redirect_uri
​string · uri · required

The URI to redirect the user to after consent.

scope
​string · required

Requested scopes.

state
​string · required

An opaque value used by the client to maintain state.

response_type
​string

Expected response type (e.g. "code").

Authorize Consent › Responses

Consent decision processed. Typically results in a redirect to the client's redirect_uri with an authorization code (if approved) or an error.

No data returned

Authenticate

POST
https://api.cards.tapt.io
/oauth/token

Exchanges an authorization grant (e.g., authorization code, client credentials, refresh token) for an access token. Organisation-owned clients support only client_credentials, return a 3600-second access token, and never receive refresh tokens. They accept HTTP Basic or body credentials, in JSON or form-encoded requests. Do not combine authentication methods or send credentials in the query string. Invalid Authorization headers never fall back to body authentication. Requests are rate limited. On 429, wait for the Retry-After delay before retrying. See rate limits for retry guidance. Cache access tokens until near expiry rather than requesting one per API call.

Authenticate › Request Body

grant_type
​string · enum · required

The grant type. Determines the set of other required parameters. Supported values include:

  • authorization_code: For exchanging an authorization code for an access token.
  • refresh_token: For obtaining a new access token using a refresh token.
  • client_credentials: For client authentication directly (if supported by the server).
Enum values:
authorization_code
refresh_token
client_credentials
client_id
​string

Your application's client ID. Required for authorization_code and client_credentials grants. May be required for refresh_token grant if the server enforces client authentication for refresh tokens.

client_secret
​string

Your application's client secret. Required for authorization_code and client_credentials grants if the client is confidential. May be required for refresh_token grant if the server enforces client authentication for refresh tokens with confidential clients.

code
​string

The authorization code received from the authorization server. Required if grant_type is authorization_code.

redirect_uri
​string · uri

The redirect URI that was used in the initial authorization request to obtain the code. Required if grant_type is authorization_code. Must match the URI used in the authorization request.

refresh_token
​string

The refresh token issued to the client. Required if grant_type is refresh_token.

scope
​string

Optional. The requested scope(s) for the access token. For organisation clients, use a space-separated subset of the approved read and write scopes. Omit this field to request all approved scopes. write does not imply read. Other grants retain their existing scope behavior.

Authenticate › Responses

Successfully issued access token.

access_token
​string

The access token string.

token_type
​string

Type of the token issued (e.g., "Bearer").

expires_in
​integer

The lifetime in seconds of the access token.

refresh_token
​string

The refresh token, which can be used to obtain new access tokens. (Optional)

scope
​string

The scope of the access token. (Optional)


Revoke an organisation access token

POST
https://api.cards.tapt.io
/oauth/revoke

Requires HTTP Basic; body credentials are not accepted. Revokes only tokens belonging to the authenticated organisation client. Unknown or other clients' tokens return 200 without affecting those clients. Does not change legacy Zapier disconnect behavior. Requests are rate limited. On 429, wait for the Retry-After delay before retrying. See rate limits for retry guidance.

Revoke an organisation access token › Request Body

token
​string · required

Revoke an organisation access token › Responses

Request processed. Empty response body.

No data returned

Get Organisation Information

GET
https://api.cards.tapt.io
/oauth/me

Retrieves information about the currently authenticated resource owner (organisation).

Get Organisation Information › Responses

Successfully retrieved organisation information.

name
​string

Organisation name.