AI
Agents

Keep a picture the user shares in a chat

One PNG, JPEG, GIF or WebP of at most 2 MB (the composer downscales first). Kept once per workspace and content; the returned ref is what a chat message's image attachment names. Nothing is imported.

post/agents/images

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/agents/images
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Query parameters

workspace_idinteger required

Response

Document created, URL follows

refstring required
media_typestring required
byte_sizeinteger required

Changes

No recorded changes to this operation across all 3 revisions of this API.