Cubewire LogoDeveloper
Support
Onboarding
Cubewire Developer Hub Logo
SOC 2 Compliant

Developer documentation and tools for Cubewire's digital wallet infrastructure. Built for developers, by developers.

developers@cubewire.com
TwitterGitHubDiscord

Developer Tools

  • API Documentation
  • API Reference

Resources

  • Documentation

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
© 2026 Cubewire. All rights reserved.
Developer Documentation Portal•Built with ♥ for developers
  1. Cubewire Wallet
  2. OAuth2
  3. Request OAuth2 access token

Request OAuth2 access token

Exchange OAuth2 client credentials for an access token. Use the Client Credentials grant type with your client ID and secret. The token is used in the Authorization: Bearer header for subsequent API calls.

Request Body

Send as application/x-www-form-urlencoded:

ParameterTypeRequiredDescription
grant_typestringYesMust be client_credentials
client_idstringYesYour OAuth2 client ID
client_secretstringYesYour OAuth2 client secret
scopestringNoSpace-separated list of scopes to request. If omitted, all allowed scopes for the client will be granted.

Response

Returns an access token with expiry. Use the token in the Authorization: Bearer {access_token} header for API requests.

Use Cases

  • Authenticate server-to-server integrations
  • Get token for programmatic API access
  • Refresh token before expiry (typically 1 hour)

Related

  • Programmatic Access — Full setup guide and code examples

On this page

  • Request Body
  • Response
  • Use Cases
  • Related
  1. Cubewire Wallet
  2. OAuth2
  3. Request OAuth2 access token

Request OAuth2 access token

Exchange OAuth2 client credentials for an access token. Use the Client Credentials grant type with your client ID and secret. The token is used in the Authorization: Bearer header for subsequent API calls.

Request Body

Send as application/x-www-form-urlencoded:

ParameterTypeRequiredDescription
grant_typestringYesMust be client_credentials
client_idstringYesYour OAuth2 client ID
client_secretstringYesYour OAuth2 client secret
scopestringNoSpace-separated list of scopes to request. If omitted, all allowed scopes for the client will be granted.

Response

Returns an access token with expiry. Use the token in the Authorization: Bearer {access_token} header for API requests.

Use Cases

  • Authenticate server-to-server integrations
  • Get token for programmatic API access
  • Refresh token before expiry (typically 1 hour)

Related

  • Programmatic Access — Full setup guide and code examples

On this page

  • Request Body
  • Response
  • Use Cases
  • Related