Skip to main content
POST
AhaSend Go SDK

Authorizations

Authorization
string
header
required

API key for authentication

Headers

Idempotency-Key
string

Optional idempotency key for safe request retries. Must be a unique string for each logical request. Requests with the same key will return the same response. Keys for non-secret responses expire after 24 hours. API-key create responses include a one-time secret_key, so their encrypted replay responses expire after 5 minutes.

Maximum string length: 255

Path Parameters

account_id
string<uuid>
required

Account ID

Body

application/json
name
string
required

Credential name

Maximum string length: 255
scope
enum<string>
required

Credential scope - "global" or "scoped"

Available options:
global,
scoped
sandbox
boolean
default:false

Whether this is a sandbox credential

domains
string[]

Required if scope is "scoped"

Response

SMTP credential created successfully

object
enum<string>
required

Object type identifier

Available options:
credential_smtp
id
string<uuid>
required

Unique identifier for the SMTP credential

created_at
string<date-time>
required

When the credential was created

updated_at
string<date-time>
required

When the credential was last updated

name
string
required

Credential name

username
string
required

SMTP username

sandbox
boolean
required

Whether this is a sandbox credential

scope
enum<string>
required

Credential scope

Available options:
global,
scoped
password
string
required

SMTP password. Returned only when the credential is created.

domains
string[]

Domains this credential can send from