Sender profile
Read and set your account's sender profile: who your mail is from, as your marketing email's footer shows it. This page is generated from the OpenAPI document of release main-6976024, the one the API serves, so it lists only what the API has.
How to authenticate, where errors are explained, and the other resources are in the API reference.
The account's sender profile
GET /v1/sender-profile
Its API key needs sender_profile:read.
Answers
- 200: The current version
- 401:
- API key missing (
api_key_missing) - Invalid API key (
api_key_invalid) - API key revoked (
api_key_revoked) - API key expired (
api_key_expired)
- API key missing (
- 403:
- Account closed (
account_closed) - Missing scope (
api_key_scope_missing)
- Account closed (
- 404:
- Sender profile not set (
sender_profile_not_set)
- Sender profile not set (
- 429:
- Too many requests (
rate_limited)
- Too many requests (
- 500:
- Internal error (
internal)
- Internal error (
- 503:
- API keys unavailable (
api_keys_unavailable)
- API keys unavailable (
What a 200 answers
| Field | What it is |
|---|---|
version (required) | a whole number, at least 1. Counts up from 1 with each change. Earlier versions are kept for 13 months after they were replaced, so a sent email can show what it said. |
legal_name (required) | text. |
postal_address (required) | an object. Where the sender receives mail. Every marketing footer shows it, as the law requires (CAN-SPAM, CASL). |
postal_address.line1 (required) | text, up to 200 characters. The street address, PO box, or private mailbox. |
postal_address.line2 | text, up to 200 characters. A suite, unit, or building, if any. |
postal_address.city (required) | text, up to 100 characters. |
postal_address.state | text, up to 100 characters. The state, province, county, or region, where there is one. |
postal_address.postal_code | text, up to 20 characters. |
postal_address.country (required) | text. ISO 3166-1 alpha-2. |
contact (required) | an object. One way to reach the sender, which the footer shows beside the address: an email address (email), a phone number that reaches a person or voicemail (phone), or an https web address (url). |
contact.kind (required) | one of email, phone or url. |
contact.value (required) | text, up to 2,048 characters. |
changed_at (required) | a date and time (RFC 3339). When the profile changed to this version. |
Set the account's sender profile (owners and admins; keys need sender_profile:write, live only)
PUT /v1/sender-profile
Replaces the whole profile. A change makes a new version, and the earlier one is kept. Sending the profile as it already is changes nothing, so a retry is safe, and it spends nothing of the account's sender-profile-change limit.
Its API key needs sender_profile:write.
Request body
A application/json body.
| Field | What it is |
|---|---|
legal_name (required) | text, up to 200 characters. The name the sender is legally known by, or trades under. |
postal_address (required) | an object. Where the sender receives mail. Every marketing footer shows it, as the law requires (CAN-SPAM, CASL). |
postal_address.line1 (required) | text, up to 200 characters. The street address, PO box, or private mailbox. |
postal_address.line2 | text, up to 200 characters. A suite, unit, or building, if any. |
postal_address.city (required) | text, up to 100 characters. |
postal_address.state | text, up to 100 characters. The state, province, county, or region, where there is one. |
postal_address.postal_code | text, up to 20 characters. |
postal_address.country (required) | text. ISO 3166-1 alpha-2. |
contact (required) | an object. One way to reach the sender, which the footer shows beside the address: an email address (email), a phone number that reaches a person or voicemail (phone), or an https web address (url). |
contact.kind (required) | one of email, phone or url. |
contact.value (required) | text, up to 2,048 characters. |
Answers
- 200: The profile as it now is
- 400:
- Malformed request (
malformed_request)
- Malformed request (
- 401:
- API key missing (
api_key_missing) - Invalid API key (
api_key_invalid) - API key revoked (
api_key_revoked) - API key expired (
api_key_expired)
- API key missing (
- 403:
- Account closed (
account_closed) - Missing scope (
api_key_scope_missing) - Test keys can't do this (
test_key_not_allowed)
- Account closed (
- 413:
- Request body too large (
payload_too_large)
- Request body too large (
- 415:
- Unsupported media type (
unsupported_media_type)
- Unsupported media type (
- 422:
- Validation failed (
validation_failed)
- Validation failed (
- 429:
- Too many requests (
rate_limited)
- Too many requests (
- 500:
- Internal error (
internal)
- Internal error (
- 503:
- API keys unavailable (
api_keys_unavailable)
- API keys unavailable (
What a 200 answers
| Field | What it is |
|---|---|
version (required) | a whole number, at least 1. Counts up from 1 with each change. Earlier versions are kept for 13 months after they were replaced, so a sent email can show what it said. |
legal_name (required) | text. |
postal_address (required) | an object. Where the sender receives mail. Every marketing footer shows it, as the law requires (CAN-SPAM, CASL). |
postal_address.line1 (required) | text, up to 200 characters. The street address, PO box, or private mailbox. |
postal_address.line2 | text, up to 200 characters. A suite, unit, or building, if any. |
postal_address.city (required) | text, up to 100 characters. |
postal_address.state | text, up to 100 characters. The state, province, county, or region, where there is one. |
postal_address.postal_code | text, up to 20 characters. |
postal_address.country (required) | text. ISO 3166-1 alpha-2. |
contact (required) | an object. One way to reach the sender, which the footer shows beside the address: an email address (email), a phone number that reaches a person or voicemail (phone), or an https web address (url). |
contact.kind (required) | one of email, phone or url. |
contact.value (required) | text, up to 2,048 characters. |
changed_at (required) | a date and time (RFC 3339). When the profile changed to this version. |