API
POST/api/identities/{handle}/messages/send
AuthorizationBearer <token>

An Admin Key (tigby_admin_…) for Org-level calls, an Identity Key (tigby_id_…) for one Identity's own resources, or a console session (tigby_sess_…). Sent as Authorization: Bearer <key>.

In: header

Path Parameters

handle*string

Header Parameters

Idempotency-Key?string

Makes the send safe to retry: at most one mail goes out per key and Identity. A repeat with the same key and the same body within 24 hours answers 202 with the first send's message_id and sends, meters and announces nothing; the same key with another body is refused with idempotency_key_reused (422), and a repeat while the first is still being submitted with idempotency_key_in_progress (409). A send that was refused (by the policy point, the mail server, or a failure that provably reached no server) leaves the key free, so the same request with the same key sends once the cause is gone. Use a fresh key, a UUID for instance, for every mail you mean to send, and the same key for every retry of it.

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.tigby.eu/api/identities/string/messages/send" \  -H "Content-Type: application/json" \  -d '{    "to": null,    "cc": null,    "bcc": null,    "subject": null,    "text": null,    "html": null,    "in_reply_to": null,    "references": null  }'
{  "message_id": "string",  "recipients": [    "string"  ],  "disclosure": true}
GET/api/identities/{handle}/ai-disclosure
AuthorizationBearer <token>

An Admin Key (tigby_admin_…) for Org-level calls, an Identity Key (tigby_id_…) for one Identity's own resources, or a console session (tigby_sess_…). Sent as Authorization: Bearer <key>.

In: header

Path Parameters

handle*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.tigby.eu/api/identities/string/ai-disclosure"
{  "enabled": true,  "footer": "string",  "warning": "string"}
PUT/api/identities/{handle}/ai-disclosure
AuthorizationBearer <token>

An Admin Key (tigby_admin_…) for Org-level calls, an Identity Key (tigby_id_…) for one Identity's own resources, or a console session (tigby_sess_…). Sent as Authorization: Bearer <key>.

In: header

Path Parameters

handle*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.tigby.eu/api/identities/string/ai-disclosure" \  -H "Content-Type: application/json" \  -d '{    "enabled": null,    "acknowledge_warning": null  }'
{  "enabled": true,  "footer": "string",  "warning": "string"}
GET/api/identities/{handle}/mail
AuthorizationBearer <token>

An Admin Key (tigby_admin_…) for Org-level calls, an Identity Key (tigby_id_…) for one Identity's own resources, or a console session (tigby_sess_…). Sent as Authorization: Bearer <key>.

In: header

Path Parameters

handle*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.tigby.eu/api/identities/string/mail"
{  "paused": true,  "paused_at": null}
PATCH/api/identities/{handle}/mail
AuthorizationBearer <token>

An Admin Key (tigby_admin_…) for Org-level calls, an Identity Key (tigby_id_…) for one Identity's own resources, or a console session (tigby_sess_…). Sent as Authorization: Bearer <key>.

In: header

Path Parameters

handle*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://api.tigby.eu/api/identities/string/mail" \  -H "Content-Type: application/json" \  -d '{    "paused": null  }'
{  "paused": true,  "paused_at": null}