Skip to content

Getting Your API Token

To use the Kirim.Email SMTP API, you need an API token. The token authenticates your requests and is used alongside your username for Basic Authentication.

You can manage your tokens from the Tokens page in the Kirim.Email dashboard.

There are two ways to access the Tokens page:

Profile Dropdown

Click your profile avatar or name at the bottom left of the sidebar, then select Tokens from the dropdown menu.

  1. Navigate to the Tokens page.

  2. Click the Create Token button.

  3. Copy the generated token immediately — it is shown only once and cannot be retrieved later.

  4. Store the token securely, for example in a password manager or environment variable.

The token is used as the password in Basic Authentication:

Terminal window
curl -X GET "https://smtp-app.kirim.email/api/domains" \
-u "username:your-api-token"

Replace username with your Kirim.Email username and your-api-token with the token you created.

Store your token in an environment variable to keep it secure:

Terminal window
export KIRIMEMAIL_API_TOKEN="your-api-token"
curl -X GET "https://smtp-app.kirim.email/api/domains" \
-u "username:$KIRIMEMAIL_API_TOKEN"
Action Description
View Tokens See all active tokens with their creation date and last used timestamp.
Create Token Generate a new API token.
Delete Token Revoke a token immediately. Any requests using a deleted token will be rejected.