# 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](https://flyanote.com/docs/api).

## Operations

* [The account's sender profile](https://flyanote.com/docs/api/sender-profile#get-sender-profile): `GET /v1/sender-profile`
* [Set the account's sender profile (owners and admins; keys need sender\_profile:write, live only)](https://flyanote.com/docs/api/sender-profile#set-sender-profile): `PUT /v1/sender-profile`

## 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](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
* **404**:  
  * Sender profile not set ([sender\_profile\_not\_set](https://flyanote.com/docs/errors#sender-profile-not-set))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#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](https://flyanote.com/docs/errors#malformed-request))
* **401**:  
  * API key missing ([api\_key\_missing](https://flyanote.com/docs/errors#api-key-missing))
  * Invalid API key ([api\_key\_invalid](https://flyanote.com/docs/errors#api-key-invalid))
  * API key revoked ([api\_key\_revoked](https://flyanote.com/docs/errors#api-key-revoked))
  * API key expired ([api\_key\_expired](https://flyanote.com/docs/errors#api-key-expired))
* **403**:  
  * Account closed ([account\_closed](https://flyanote.com/docs/errors#account-closed))
  * Missing scope ([api\_key\_scope\_missing](https://flyanote.com/docs/errors#api-key-scope-missing))
  * Test keys can't do this ([test\_key\_not\_allowed](https://flyanote.com/docs/errors#test-key-not-allowed))
* **413**:  
  * Request body too large ([payload\_too\_large](https://flyanote.com/docs/errors#payload-too-large))
* **415**:  
  * Unsupported media type ([unsupported\_media\_type](https://flyanote.com/docs/errors#unsupported-media-type))
* **422**:  
  * Validation failed ([validation\_failed](https://flyanote.com/docs/errors#validation-failed))
* **429**:  
  * Too many requests ([rate\_limited](https://flyanote.com/docs/errors#rate-limited))
* **500**:  
  * Internal error ([internal](https://flyanote.com/docs/errors#internal))
* **503**:  
  * API keys unavailable ([api\_keys\_unavailable](https://flyanote.com/docs/errors#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.                                                                                                                                  |
