Get the organization avatar upload URL
Returns where to upload the organization avatar. View request and response details for this Samva email API endpoint.
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 }.
apiKeyx-api-key<token>Success
application/json- response
uploadUrl*stringThe URL to PUT the image bytes to.
maxBytes*numberThe largest image the upload accepts, in bytes.
contentTypes*array<string>The image content types the upload accepts.
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.organizations.createAvatarUpload({});{ "uploadUrl": "string", "maxBytes": 0, "contentTypes": [ "string" ]}Related documentation
Create an organization
Creates a new organization under the current billing account and returns it. Use this endpoint to create an organization through the Samva email API.
Delete the current organization
Starts an owner-authorized organization deletion operation, confirming the organization name in the request.