Token

Authentication in Cakemail Next-gen API works with OAuth2 Bearer Tokens. You can obtain a token by calling the Create a token endpoint using your Cakemail credentials (username and password).

The token you obtain contains the following:

  • Access Token
  • Token Type
  • Expires In
  • Refresh Token

All tokens eventually expire. When this happens, refresh it using the same endpoint with grant_type 'refresh_token'.