API / Identities
POST
/identities/{id}/addresses
Add an allowed From address (local-part) on a verified identity
Authentification : clé API Bearer requise.
Paramètres
| Nom | Dans | Type | Description |
|---|---|---|---|
| id* | path | string | Identity ID |
Corps JSON
Address payload
| Nom | Type | Description |
|---|---|---|
| label | string | — |
| localPart | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/identities/<id>/addresses \
-H "Authorization: Bearer $SPORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 201 | Created | add_address.AddAddressResult |
| 400 | Bad Request | echo.HTTPError |
| 409 | Conflict | echo.HTTPError |
Source machine : openapi.json · opération addIdentityAddress