stet
API reference

Upload a sending-profile avatar image

Requires `write` (`sending_profile:manage`). NOTE: this endpoint takes no `{id}` — it is a standalone upload that returns a URL; pass that URL as `avatarUrl` on a create/update call to attach it to a profile. PNG, JPEG, WebP, or GIF; max 2MB.

POST/api/sending-profiles/avatar
AuthorizationBearer <token>

A Stet API key (prefix bk_), created under Settings → API keys. The whole API requires the Growth plan or higher; keys are scoped read or write — composing and sending require write.

In: header

filefile
Formatbinary

Response Body

curl -X POST "https://app.stethq.com/api/sending-profiles/avatar" \  -F file="string"
{
  "url": "http://example.com"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}