Skip to content
Status

OAuth

Operations for OAuth authentication. Public OAuth 2.0 Authorization Server APIs for Shuttle platform. Supports both form-encoded and JSON request formats.

Using Access Tokens with Shuttle APIs

When you receive an access token from the /token endpoint, you’ll get a response like:

{
  "access_token": "at_1234_h480djs93hd8",
  "token_type": "Bearer",
  "expires_in": 3600
}

To use this token with Shuttle APIs:

  1. These tokens can ONLY be used with instance-specific APIs under /c/api/* endpoints. Note: They will not work with Shuttle APIs that operate outside of an instance context.

  2. Add the token to your API requests in the Authorization header:

    Authorization: Bearer at_1234_h480djs93hd8
  3. The token will only work with /c/api/ endpoints for the specific instance it was issued for, and only for the scopes that were included in the original authorization (if no scope was specified, default instance permissions apply)

  4. Important notes:

    • Tokens expire after 1 hour (3600 seconds)
    • Use the refresh_token to get a new access_token when it expires
    • Keep your tokens secure and never expose them in URLs or client-side code
    • If a token is compromised, revoke it immediately using the /revoke endpoint

Example using curl:

# First, get your access token from /token endpoint

# Then use it with Shuttle's /c/api/ endpoints
curl "https://app.shuttleglobal.com/c/api/transactions?limit=1" \
  -H "Authorization: Bearer at_1234_h480djs93hd8"

Note: These tokens will NOT work with other Shuttle APIs or endpoints outside of the /c/api/ path.

Was this page helpful?