Cakemail icon

Cakemail

Interact with Cakemail API

Token → Create

AI-generated

Summary

Creates a new authentication token for a Cakemail account.

Inputs

  • email (required) — Cakemail account email.
  • password (required) — Cakemail account password.
  • accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.

Output shape

a token object containing access and refresh tokens

Returns an object with access and refresh tokens upon successful creation.

Examples

Example 1: Create a token for a Cakemail account with valid credentials

Set the email and password parameters to the appropriate values.

Example 2: Create a token for a specific account in a multi-tenant setup

Provide an email, password, and accountId to target a specific account.

Discussion