View Source Resend.ApiKeys (resend v0.4.4)

Manage API keys in Resend.

Summary

Functions

Lists all API keys.

Removes an API key. Caution: This can't be undone!

Functions

Link to this function

create(client \\ Resend.client(), opts)

View Source

Creates a new API key.

Parameter options:

  • :name - The API key name (required)
  • :permission - Access scope to assign to this key, one of: ["full_access", "sending_access"]
  • :domain_id - Restrict sending to a specific domain. Only used when permission is set to "sending_access"

The :token field in the response struct is the only time you will see the token, keep it somewhere safe.

Link to this function

list(client \\ Resend.client())

View Source

Lists all API keys.

Link to this function

remove(client \\ Resend.client(), api_key_id)

View Source

Removes an API key. Caution: This can't be undone!