Organizations

Get the organization avatar upload URL

Returns where to upload the organization avatar. View request and response details for this Samva email API endpoint.

POST
/v1/organizations/current/avatar-upload

Returns where to upload the organization avatar. PUT the png, jpeg, or webp bytes (at most maxBytes) to uploadUrl with the same credential and a matching Content-Type; the response is { src }. Then send PATCH /v1/organizations/current with { avatarUrl: src }.

x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/organizations/current/avatar-upload"
{  "uploadUrl": "string",  "maxBytes": 0,  "contentTypes": [    "string"  ]}

Related documentation