Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, "<slug>") / getMediaId("<slug>")). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard.
Three transports, pick one. Every one of them needs the file itself:
multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB.
JSON { "source_url": "https://..." } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares.
JSON { "data": "<base64>", "filename": "...", "mime": "..." } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped.
name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow.
Meta registration is best-effort, and the response tells you the truth about it.media_id is null and meta_status is "pending" when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is "expired" once the id passes Meta’s 30-day lifetime.
Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted.
Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: "runtime" (a file the bot only sends) or intent: "template" never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free.
Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push.
Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload.
Project API key issued in Settings → API keys. Send it as Authorization: Bearer pk_live_….
Headers
X-Paige-Project
string
Target project id, for an MCP OAuth bearer (mcp_at_…) attached to more than one project — get ids from GET /v1/projects. Matched case-insensitively.
Omit it and a READ falls back to the connection's default project; a mutation (any non-GET) on a connection with 2+ projects is rejected with 400 project_required — a write is never defaulted to a guessed project. A connection with exactly one project never needs the header.
Scopes are checked against the SELECTED project only, never a union across the connection.
For a pk_ API key the header selects nothing — one key is one project's context — but it IS validated: omit it and the key's own project is used, send it and it must name that project, otherwise the call is rejected with 403 project_not_attached (a blank value is 400 invalid_project_header, as above).
Body
application/jsonmultipart/form-data
Option 1
Option 2
source_url
string<uri>
required
Public http(s) URL Paige downloads the file from. Private, loopback and link-local addresses are refused, redirects are re-checked at every hop.
name
string
Optional bot-facing name for the asset. Normalized to a slug; blank falls back to the filename.
caption
string | null
Maximum string length: 2000
filename
string
Overrides the filename derived from the URL. The slug still comes from name when you send one.
Required string length: 1 - 255
mime
string
Overrides the server's Content-Type. Use it when the host serves the file as application/octet-stream.
Required string length: 1 - 255
describe_image
booleanenum<string>
Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or true/false/1/0 as a multipart form field.
intent
Option 1 · enum<string>Option 2 · enum<string>
What Paige should do with the file: knowledge, flow, runtime, multi, or template. Send runtime for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use multi to also add it to knowledge. Send template for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.
Available options:
knowledge,
flow,
runtime,
multi,
template
Response
Success.
success
enum<boolean>
required
Available options:
true
data
object
required
Hide child attributes
data.asset
object
required
Hide child attributes
data.asset.slug
string
required
The bot-facing name. sendMedia(to, "<slug>") and getMediaId("<slug>") resolve by this.
data.asset.media_id
string | null
required
Meta's id for the registered copy, used when the bot sends the file. Null when registration did not happen (usually no WhatsApp number connected) — the asset is still stored and Paige retries on a schedule.
data.asset.meta_status
enum<string>
required
registered — ready to send. pending — stored but not registered with Meta yet. expired — the id passed Meta's 30-day lifetime and is being refreshed.
Available options:
registered,
pending,
expired
data.asset.meta_uploaded_at
string | null
required
When the file was registered with Meta (ISO 8601), or null.
data.asset.mime
string | null
required
Stored mime type, e.g. image/png.
data.asset.bytes
number | null
required
Size of the stored original.
data.asset.filename
string | null
required
The original filename it was uploaded under.
data.asset.kind
enum<string>
required
What Paige did with it. knowledge means it was text-extracted into the bot's knowledge base (PDF, DOCX, text, markdown).
Available options:
image,
video,
audio,
knowledge
data.asset.caption
string | null
required
The caption supplied at upload, if any.
data.asset.source
enum<string>
required
chat_upload is your own upload. conversation_inbound is a file a customer sent in over WhatsApp — only ever returned to a key that also holds conversations:read.
Available options:
chat_upload,
conversation_inbound
data.asset.created_at
string | null
required
When the asset was created (ISO 8601).
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"paige","description":"Build AI-powered WhatsApp bots with interactive flows, automated conversations, and a built-in database — no backend required.","colors":{"primary":"#81D741","light":"#cfeabb","dark":"#81D741"},"logo":{"light":"https://mintcdn.com/greenpages/SGZewfX5ti1H1LmZ/logo/green-pages-logo.png?fit=max\u0026auto=format\u0026n=SGZewfX5ti1H1LmZ\u0026q=85\u0026s=9b5fbf18d11676f6513a94ed3366cb7f","dark":"https://mintcdn.com/greenpages/SGZewfX5ti1H1LmZ/logo/green-pages-logo.png?fit=max\u0026auto=format\u0026n=SGZewfX5ti1H1LmZ\u0026q=85\u0026s=9b5fbf18d11676f6513a94ed3366cb7f"},"favicon":"https://mintcdn.com/greenpages/ns32KHaAM2ByMLCm/favicon.ico?fit=max\u0026auto=format\u0026n=ns32KHaAM2ByMLCm\u0026q=85\u0026s=10f80cc37fcecd5ef561ba85c6bca8d6","api":{"params":{"expanded":"all"},"playground":{"display":"simple"},"examples":{"languages":["curl","javascript","python"]}},"navbar":{"links":[],"primary":{"type":"button","label":"Start Building","href":"https://paigeme.dev"}},"footer":{"socials":{}},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"contextual":{"options":["copy","view","assistant","download-spec"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"greenpages","hasAudioNarration":false,"actualSubdomain":"greenpages","customDomains":["howto.paigeme.dev"],"gitSource":{"type":"github","owner":"brendangp","repo":"paige-docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b007c142f71afcbab8c3194","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API","count":57},{"language":"default","tag":"Endpoints","count":49},{"language":"default","tag":"Features","count":42},{"language":"default","tag":"Settings","count":12},{"language":"default","tag":"Learn","count":10},{"language":"default","tag":"Build","count":10},{"language":"default","tag":"Introduction","count":9},{"language":"default","tag":"Getting started","count":8},{"language":"default","tag":"Broadcasts","count":8},{"language":"default","tag":"Tools","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--default-border-color: var(--gray-200)}.dark{--default-border-color: var(--gray-800)}#navbar a[href=\"/\"]:has(img.nav-logo){display:inline-flex!important;align-items:center}#navbar a[href=\"/\"]:has(img.nav-logo)::after{content:'paige';font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;color:#81D741;font-weight:500;font-size:1rem;letter-spacing:-0.01em;margin-left:0.5rem}#sidebar .nav-dropdown-trigger{border:none!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding-left:0.375rem}#sidebar .nav-dropdown-trigger:hover{background-color:rgb(0 0 0 / 0.04)!important}.dark #sidebar .nav-dropdown-trigger:hover{background-color:rgb(255 255 255 / 0.06)!important}#sidebar .nav-dropdown-trigger .nav-dropdown-item-icon{border:none!important;border-radius:0!important;background:transparent!important;height:auto!important;width:auto!important;padding:0!important}.nav-dropdown-content{border-radius:0!important}.nav-dropdown-content .nav-dropdown-item{border-radius:0!important}.nav-dropdown-content .nav-dropdown-item-icon{border:none!important;border-radius:0!important;background:transparent!important;height:auto!important;width:auto!important;padding:0!important}.nav-dropdown-content .nav-dropdown-item-description{display:none!important}#sidebar .nav-anchor span{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-size:12px;font-weight:500;letter-spacing:-0.02em;text-transform:uppercase}"}]}
{"page":{"pagePath":"api-reference/endpoints/media/upload-a-media-asset","slug":"/api-reference/endpoints/media/upload-a-media-asset","pageMetadata":{"title":"Upload a media asset","description":"Stores one file against the project, registers it with Meta for sending, and returns the `slug` your bot resolves it by at runtime (`sendMedia(to, \"\u003cslug>\")` / `getMediaId(\"\u003cslug>\")`). Write the slug into a table row with `POST /v1/tables/{table}/rows` and the bot can send the asset later without ever touching the dashboard.\n\n**Three transports, pick one.** Every one of them needs the file itself:\n\n- `multipart/form-data` with a single part named **`file`**, plus optional `name` and `caption` text fields. Up to **20 MB**.\n- JSON `{ \"source_url\": \"https://...\" }` — Paige downloads it for you. Up to **20 MB**. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (`400 blocked_source_url`), redirects are re-checked at every hop and capped, and a non-http(s) scheme is `400 invalid_source_url`. Add `filename` / `mime` to override what the remote server declares.\n- JSON `{ \"data\": \"\u003cbase64>\", \"filename\": \"...\", \"mime\": \"...\" }` — inline bytes, capped at **8 MB decoded**, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or `source_url`. A `data:` URI prefix is accepted and stripped.\n\n**`name` is the slug.** Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. **A slug that already exists is `409 SLUG_EXISTS`** — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow.\n\n**Meta registration is best-effort, and the response tells you the truth about it.** `media_id` is `null` and `meta_status` is `\"pending\"` when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. `meta_status` is `\"expired\"` once the id passes Meta's 30-day lifetime.\n\n**Size and type.** Oversize is `413 file_too_large`; a type Paige cannot ingest is `415`; an empty file is `400`. Images, video, audio, PDF, DOCX, plain text and markdown are accepted.\n\n**Uploading an image costs credits.** Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is `402 insufficient_credits`. Send `describe_image: false` to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with `intent: \"runtime\"` (a file the bot only sends) or `intent: \"template\"` never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free.\n\n**Two limits apply beyond the per-request throttle.** Uploads are metered by BYTES as well as by request count, so a burst of large files can return `429 rate_limited` even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with `413 storage_limit_exceeded` rather than quietly succeeding. `GET /v1/media` reports `storage.used_bytes` / `storage.remaining_bytes` so you can check before you push.\n\nSend an `Idempotency-Key` header to make a retry safe. The fingerprint covers the **file bytes**, so retrying the same upload replays the original response, while reusing the key for a *different* file is `409 idempotency_key_mismatch` rather than a silently-dropped upload.\n\n**Required scope:** `media:write`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/media","href":"/api-reference/endpoints/media/upload-a-media-asset","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n em: \"em\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Stores one file against the project, registers it with Meta for sending, and returns the \", _jsx(_components.code, {\n children: \"slug\"\n }), \" your bot resolves it by at runtime (\", _jsx(_components.code, {\n children: \"sendMedia(to, \\\"\u003cslug>\\\")\"\n }), \" / \", _jsx(_components.code, {\n children: \"getMediaId(\\\"\u003cslug>\\\")\"\n }), \"). Write the slug into a table row with \", _jsx(_components.code, {\n children: \"POST /v1/tables/{table}/rows\"\n }), \" and the bot can send the asset later without ever touching the dashboard.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Three transports, pick one.\"\n }), \" Every one of them needs the file itself:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"multipart/form-data\"\n }), \" with a single part named \", _jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"file\"\n })\n }), \", plus optional \", _jsx(_components.code, {\n children: \"name\"\n }), \" and \", _jsx(_components.code, {\n children: \"caption\"\n }), \" text fields. Up to \", _jsx(_components.strong, {\n children: \"20 MB\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"JSON \", _jsx(_components.code, {\n children: \"{ \\\"source_url\\\": \\\"https://...\\\" }\"\n }), \" — Paige downloads it for you. Up to \", _jsx(_components.strong, {\n children: \"20 MB\"\n }), \". Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (\", _jsx(_components.code, {\n children: \"400 blocked_source_url\"\n }), \"), redirects are re-checked at every hop and capped, and a non-http(s) scheme is \", _jsx(_components.code, {\n children: \"400 invalid_source_url\"\n }), \". Add \", _jsx(_components.code, {\n children: \"filename\"\n }), \" / \", _jsx(_components.code, {\n children: \"mime\"\n }), \" to override what the remote server declares.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"JSON \", _jsx(_components.code, {\n children: \"{ \\\"data\\\": \\\"\u003cbase64>\\\", \\\"filename\\\": \\\"...\\\", \\\"mime\\\": \\\"...\\\" }\"\n }), \" — inline bytes, capped at \", _jsx(_components.strong, {\n children: \"8 MB decoded\"\n }), \", lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or \", _jsx(_components.code, {\n children: \"source_url\"\n }), \". A \", _jsx(_components.code, {\n children: \"data:\"\n }), \" URI prefix is accepted and stripped.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [_jsx(_components.code, {\n children: \"name\"\n }), \" is the slug.\"]\n }), \" Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. \", _jsxs(_components.strong, {\n children: [\"A slug that already exists is \", _jsx(_components.code, {\n children: \"409 SLUG_EXISTS\"\n })]\n }), \" — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Meta registration is best-effort, and the response tells you the truth about it.\"\n }), \" \", _jsx(_components.code, {\n children: \"media_id\"\n }), \" is \", _jsx(_components.code, {\n children: \"null\"\n }), \" and \", _jsx(_components.code, {\n children: \"meta_status\"\n }), \" is \", _jsx(_components.code, {\n children: \"\\\"pending\\\"\"\n }), \" when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. \", _jsx(_components.code, {\n children: \"meta_status\"\n }), \" is \", _jsx(_components.code, {\n children: \"\\\"expired\\\"\"\n }), \" once the id passes Meta’s 30-day lifetime.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Size and type.\"\n }), \" Oversize is \", _jsx(_components.code, {\n children: \"413 file_too_large\"\n }), \"; a type Paige cannot ingest is \", _jsx(_components.code, {\n children: \"415\"\n }), \"; an empty file is \", _jsx(_components.code, {\n children: \"400\"\n }), \". Images, video, audio, PDF, DOCX, plain text and markdown are accepted.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Uploading an image costs credits.\"\n }), \" Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is \", _jsx(_components.code, {\n children: \"402 insufficient_credits\"\n }), \". Send \", _jsx(_components.code, {\n children: \"describe_image: false\"\n }), \" to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with \", _jsx(_components.code, {\n children: \"intent: \\\"runtime\\\"\"\n }), \" (a file the bot only sends) or \", _jsx(_components.code, {\n children: \"intent: \\\"template\\\"\"\n }), \" never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Two limits apply beyond the per-request throttle.\"\n }), \" Uploads are metered by BYTES as well as by request count, so a burst of large files can return \", _jsx(_components.code, {\n children: \"429 rate_limited\"\n }), \" even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with \", _jsx(_components.code, {\n children: \"413 storage_limit_exceeded\"\n }), \" rather than quietly succeeding. \", _jsx(_components.code, {\n children: \"GET /v1/media\"\n }), \" reports \", _jsx(_components.code, {\n children: \"storage.used_bytes\"\n }), \" / \", _jsx(_components.code, {\n children: \"storage.remaining_bytes\"\n }), \" so you can check before you push.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Send an \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" header to make a retry safe. The fingerprint covers the \", _jsx(_components.strong, {\n children: \"file bytes\"\n }), \", so retrying the same upload replays the original response, while reusing the key for a \", _jsx(_components.em, {\n children: \"different\"\n }), \" file is \", _jsx(_components.code, {\n children: \"409 idempotency_key_mismatch\"\n }), \" rather than a silently-dropped upload.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Required scope:\"\n }), \" \", _jsx(_components.code, {\n children: \"media:write\"\n })]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload a media asset","description":"Stores one file against the project, registers it with Meta for sending, and returns the `slug` your bot resolves it by at runtime (`sendMedia(to, \"\u003cslug>\")` / `getMediaId(\"\u003cslug>\")`). Write the slug into a table row with `POST /v1/tables/{table}/rows` and the bot can send the asset later without ever touching the dashboard.\n\n**Three transports, pick one.** Every one of them needs the file itself:\n\n- `multipart/form-data` with a single part named **`file`**, plus optional `name` and `caption` text fields. Up to **20 MB**.\n- JSON `{ \"source_url\": \"https://...\" }` — Paige downloads it for you. Up to **20 MB**. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (`400 blocked_source_url`), redirects are re-checked at every hop and capped, and a non-http(s) scheme is `400 invalid_source_url`. Add `filename` / `mime` to override what the remote server declares.\n- JSON `{ \"data\": \"\u003cbase64>\", \"filename\": \"...\", \"mime\": \"...\" }` — inline bytes, capped at **8 MB decoded**, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or `source_url`. A `data:` URI prefix is accepted and stripped.\n\n**`name` is the slug.** Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. **A slug that already exists is `409 SLUG_EXISTS`** — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow.\n\n**Meta registration is best-effort, and the response tells you the truth about it.** `media_id` is `null` and `meta_status` is `\"pending\"` when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. `meta_status` is `\"expired\"` once the id passes Meta's 30-day lifetime.\n\n**Size and type.** Oversize is `413 file_too_large`; a type Paige cannot ingest is `415`; an empty file is `400`. Images, video, audio, PDF, DOCX, plain text and markdown are accepted.\n\n**Uploading an image costs credits.** Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is `402 insufficient_credits`. Send `describe_image: false` to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with `intent: \"runtime\"` (a file the bot only sends) or `intent: \"template\"` never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free.\n\n**Two limits apply beyond the per-request throttle.** Uploads are metered by BYTES as well as by request count, so a burst of large files can return `429 rate_limited` even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with `413 storage_limit_exceeded` rather than quietly succeeding. `GET /v1/media` reports `storage.used_bytes` / `storage.remaining_bytes` so you can check before you push.\n\nSend an `Idempotency-Key` header to make a retry safe. The fingerprint covers the **file bytes**, so retrying the same upload replays the original response, while reusing the key for a *different* file is `409 idempotency_key_mismatch` rather than a silently-dropped upload.\n\n**Required scope:** `media:write`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/media","href":"/api-reference/endpoints/media/upload-a-media-asset","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"uploadMedia","tags":["Media"],"summary":"Upload a media asset","description":"Stores one file against the project, registers it with Meta for sending, and returns the `slug` your bot resolves it by at runtime (`sendMedia(to, \"\u003cslug>\")` / `getMediaId(\"\u003cslug>\")`). Write the slug into a table row with `POST /v1/tables/{table}/rows` and the bot can send the asset later without ever touching the dashboard.\n\n**Three transports, pick one.** Every one of them needs the file itself:\n\n- `multipart/form-data` with a single part named **`file`**, plus optional `name` and `caption` text fields. Up to **20 MB**.\n- JSON `{ \"source_url\": \"https://...\" }` — Paige downloads it for you. Up to **20 MB**. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (`400 blocked_source_url`), redirects are re-checked at every hop and capped, and a non-http(s) scheme is `400 invalid_source_url`. Add `filename` / `mime` to override what the remote server declares.\n- JSON `{ \"data\": \"\u003cbase64>\", \"filename\": \"...\", \"mime\": \"...\" }` — inline bytes, capped at **8 MB decoded**, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or `source_url`. A `data:` URI prefix is accepted and stripped.\n\n**`name` is the slug.** Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. **A slug that already exists is `409 SLUG_EXISTS`** — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow.\n\n**Meta registration is best-effort, and the response tells you the truth about it.** `media_id` is `null` and `meta_status` is `\"pending\"` when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. `meta_status` is `\"expired\"` once the id passes Meta's 30-day lifetime.\n\n**Size and type.** Oversize is `413 file_too_large`; a type Paige cannot ingest is `415`; an empty file is `400`. Images, video, audio, PDF, DOCX, plain text and markdown are accepted.\n\n**Uploading an image costs credits.** Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is `402 insufficient_credits`. Send `describe_image: false` to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with `intent: \"runtime\"` (a file the bot only sends) or `intent: \"template\"` never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free.\n\n**Two limits apply beyond the per-request throttle.** Uploads are metered by BYTES as well as by request count, so a burst of large files can return `429 rate_limited` even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with `413 storage_limit_exceeded` rather than quietly succeeding. `GET /v1/media` reports `storage.used_bytes` / `storage.remaining_bytes` so you can check before you push.\n\nSend an `Idempotency-Key` header to make a retry safe. The fingerprint covers the **file bytes**, so retrying the same upload replays the original response, while reusing the key for a *different* file is `409 idempotency_key_mismatch` rather than a silently-dropped upload.\n\n**Required scope:** `media:write`","security":["3a79e1aa-1872-42e8-a3e0-b0c146953b5a"],"x-required-scopes":["media:write"],"parameters":["e73e15a7-e419-447a-a56b-a79f97dff87c"],"requestBody":"8da17225-5afc-4423-b10b-b227c08dd2fd","responses":{"201":"59783d4e-e069-44ef-9ded-8f6fc1c6bbb2","400":"f322b438-a3ed-4566-8339-112c1ce5672a","401":"4b6c923c-4d61-44ac-a9a8-8ae45f794dd9","402":"31cd63e0-b257-4996-9572-bb675777c8e6","403":"5e6d7201-8bdd-49ae-8da3-39d28fb56ce4","409":"f97f2eee-07f6-416d-a61d-fb4ee70b0c5c","413":"2e77e5d5-f4cd-48a5-aa6c-b525a0b4c91e","415":"214952d3-27a8-4732-b0ab-e7f57cc7af9f","429":"2575d92a-2e06-4404-aa00-564540a1e283","500":"ea4474fc-0859-468d-abc9-4b007ed78970"},"method":"post","type":"path","servers":["2f61f958-73d8-4f9e-a417-8b9b7e2662ed"],"path":"/v1/media","baseUrlOptions":["https://api.paigeme.dev"],"title":"Upload a media asset","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e73e15a7-e419-447a-a56b-a79f97dff87c":{"schema":{"type":"string","description":"Target project id, for an MCP OAuth bearer (`mcp_at_…`) attached to more than one project — get ids from `GET /v1/projects`. Matched case-insensitively.\n\nOmit it and a READ falls back to the connection's default project; a **mutation** (any non-GET) on a connection with 2+ projects is rejected with `400 project_required` — a write is never defaulted to a guessed project. A connection with exactly one project never needs the header.\n\nScopes are checked against the SELECTED project only, never a union across the connection.\n\nFor a `pk_` API key the header selects nothing — one key is one project's context — but it IS validated: omit it and the key's own project is used, send it and it must name that project, otherwise the call is rejected with `403 project_not_attached` (a blank value is `400 invalid_project_header`, as above).","isRequired":false,"uniqueKey":"","typeLabel":"string"},"required":false,"name":"X-Paige-Project","in":"header"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["source_url"],"properties":{"source_url":{"type":"string","format":"uri","description":"Public http(s) URL Paige downloads the file from. Private, loopback and link-local addresses are refused, redirects are re-checked at every hop.","isRequired":true,"uniqueKey":"oneOf.0.source_url","typeLabel":"string\u003curi>"},"name":{"type":"string","description":"Optional bot-facing name for the asset. Normalized to a slug; blank falls back to the filename.","uniqueKey":"oneOf.0.name","typeLabel":"string"},"caption":{"oneOf":[{"type":"string","maxLength":2000,"uniqueKey":"oneOf.0.caption.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2000,"uniqueKey":"oneOf.0.caption.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.caption","typeLabel":"string | null"},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Overrides the filename derived from the URL. The slug still comes from `name` when you send one.","uniqueKey":"oneOf.0.filename","typeLabel":"string"},"mime":{"type":"string","minLength":1,"maxLength":255,"description":"Overrides the server's `Content-Type`. Use it when the host serves the file as `application/octet-stream`.","uniqueKey":"oneOf.0.mime","typeLabel":"string"},"describe_image":{"oneOf":[{"type":"boolean","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","uniqueKey":"oneOf.0.describe_image.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","enum":["true","false","1","0",""],"uniqueKey":"oneOf.0.describe_image.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"oneOf.0.describe_image","typeLabel":"boolean | enum\u003cstring>"},"intent":{"oneOf":[{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":["knowledge","flow","runtime","multi","template"],"uniqueKey":"oneOf.0.intent.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":[""],"uniqueKey":"oneOf.0.intent.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"null","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","uniqueKey":"oneOf.0.intent.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.intent","typeLabel":"enum\u003cstring> · enum\u003cstring> · null"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["data","filename","mime"],"properties":{"data":{"type":"string","minLength":1,"description":"The file bytes, base64-encoded. Plain base64 or a `data:` URI; both are accepted.","isRequired":true,"uniqueKey":"oneOf.1.data","typeLabel":"string"},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Original filename, including its extension. Also the slug fallback when `name` is omitted.","isRequired":true,"uniqueKey":"oneOf.1.filename","typeLabel":"string"},"mime":{"type":"string","minLength":1,"maxLength":255,"description":"The file's mime type, e.g. `image/png`. Checked against the types Paige can ingest.","isRequired":true,"uniqueKey":"oneOf.1.mime","typeLabel":"string"},"name":{"type":"string","description":"Optional bot-facing name for the asset. Normalized to a slug; blank falls back to the filename.","uniqueKey":"oneOf.1.name","typeLabel":"string"},"caption":{"oneOf":[{"type":"string","maxLength":2000,"uniqueKey":"oneOf.1.caption.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2000,"uniqueKey":"oneOf.1.caption.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.caption","typeLabel":"string | null"},"describe_image":{"oneOf":[{"type":"boolean","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","uniqueKey":"oneOf.1.describe_image.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","enum":["true","false","1","0",""],"uniqueKey":"oneOf.1.describe_image.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"oneOf.1.describe_image","typeLabel":"boolean | enum\u003cstring>"},"intent":{"oneOf":[{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":["knowledge","flow","runtime","multi","template"],"uniqueKey":"oneOf.1.intent.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":[""],"uniqueKey":"oneOf.1.intent.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"null","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","uniqueKey":"oneOf.1.intent.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.intent","typeLabel":"enum\u003cstring> · enum\u003cstring> · null"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"source_url":"\u003cstring>","name":"\u003cstring>","caption":"\u003cstring>","filename":"\u003cstring>","mime":"\u003cstring>","describe_image":true}}},"exampleType":"generated"},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The file bytes. Exactly one part, named `file`.","format":"binary","uniqueKey":"file","typeLabel":"file"},"name":{"type":"string","description":"Optional bot-facing name for the asset. Normalized to a slug; blank falls back to the filename.","uniqueKey":"name","typeLabel":"string"},"caption":{"oneOf":[{"type":"string","maxLength":2000,"uniqueKey":"caption.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2000,"uniqueKey":"caption.oneOf.1","typeLabel":"null"}],"uniqueKey":"caption","typeLabel":"string | null"},"describe_image":{"oneOf":[{"type":"boolean","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","uniqueKey":"describe_image.oneOf.0","typeLabel":"boolean"},{"type":"string","description":"Run the AI vision description on an image upload (default true). It costs credits, so set false to store and register the file without it. Ignored for non-image files. Accepts a boolean, or `true`/`false`/`1`/`0` as a multipart form field.","enum":["true","false","1","0",""],"uniqueKey":"describe_image.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"describe_image","typeLabel":"boolean | enum\u003cstring>"},"intent":{"oneOf":[{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":["knowledge","flow","runtime","multi","template"],"uniqueKey":"intent.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","enum":[""],"uniqueKey":"intent.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"null","description":"What Paige should do with the file: `knowledge`, `flow`, `runtime`, `multi`, or `template`. Send `runtime` for a file the bot only sends (e.g. a broadcast header) — it is stored, registered with Meta and sendable, but its text is NOT added to the bot's knowledge and no AI vision call is made for an image; use `multi` to also add it to knowledge. Send `template` for a document Paige fills in for a contact — its text is NOT extracted into the bot's knowledge base, it does not count against the knowledge-base size ceiling, and it is left out of the runtime send manifest. Omit it, or send an empty string, for no designation.","uniqueKey":"intent.oneOf.2","typeLabel":"null"}],"uniqueKey":"intent","typeLabel":"enum\u003cstring> · enum\u003cstring> · null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file":"\u003cstring>","name":"\u003cstring>","caption":"\u003cstring>","describe_image":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"59783d4e-e069-44ef-9ded-8f6fc1c6bbb2":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"asset":{"type":"object","properties":{"slug":{"type":"string","description":"The bot-facing name. `sendMedia(to, \"\u003cslug>\")` and `getMediaId(\"\u003cslug>\")` resolve by this.","isRequired":true,"uniqueKey":"data.asset.slug","typeLabel":"string"},"media_id":{"oneOf":[{"type":"string","description":"Meta's id for the registered copy, used when the bot sends the file. **Null when registration did not happen** (usually no WhatsApp number connected) — the asset is still stored and Paige retries on a schedule.","isRequired":true,"uniqueKey":"data.asset.media_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Meta's id for the registered copy, used when the bot sends the file. **Null when registration did not happen** (usually no WhatsApp number connected) — the asset is still stored and Paige retries on a schedule.","isRequired":true,"uniqueKey":"data.asset.media_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.media_id","typeLabel":"string | null"},"meta_status":{"type":"string","enum":["registered","pending","expired"],"description":"`registered` — ready to send. `pending` — stored but not registered with Meta yet. `expired` — the id passed Meta's 30-day lifetime and is being refreshed.","isRequired":true,"uniqueKey":"data.asset.meta_status","typeLabel":"enum\u003cstring>"},"meta_uploaded_at":{"oneOf":[{"type":"string","description":"When the file was registered with Meta (ISO 8601), or null.","isRequired":true,"uniqueKey":"data.asset.meta_uploaded_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the file was registered with Meta (ISO 8601), or null.","isRequired":true,"uniqueKey":"data.asset.meta_uploaded_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.meta_uploaded_at","typeLabel":"string | null"},"mime":{"oneOf":[{"type":"string","description":"Stored mime type, e.g. `image/png`.","isRequired":true,"uniqueKey":"data.asset.mime.oneOf.0","typeLabel":"string"},{"type":"null","description":"Stored mime type, e.g. `image/png`.","isRequired":true,"uniqueKey":"data.asset.mime.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.mime","typeLabel":"string | null"},"bytes":{"oneOf":[{"type":"number","description":"Size of the stored original.","isRequired":true,"uniqueKey":"data.asset.bytes.oneOf.0","typeLabel":"number"},{"type":"null","description":"Size of the stored original.","isRequired":true,"uniqueKey":"data.asset.bytes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.bytes","typeLabel":"number | null"},"filename":{"oneOf":[{"type":"string","description":"The original filename it was uploaded under.","isRequired":true,"uniqueKey":"data.asset.filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"The original filename it was uploaded under.","isRequired":true,"uniqueKey":"data.asset.filename.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.filename","typeLabel":"string | null"},"kind":{"type":"string","enum":["image","video","audio","knowledge"],"description":"What Paige did with it. `knowledge` means it was text-extracted into the bot's knowledge base (PDF, DOCX, text, markdown).","isRequired":true,"uniqueKey":"data.asset.kind","typeLabel":"enum\u003cstring>"},"caption":{"oneOf":[{"type":"string","description":"The caption supplied at upload, if any.","isRequired":true,"uniqueKey":"data.asset.caption.oneOf.0","typeLabel":"string"},{"type":"null","description":"The caption supplied at upload, if any.","isRequired":true,"uniqueKey":"data.asset.caption.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.caption","typeLabel":"string | null"},"source":{"type":"string","enum":["chat_upload","conversation_inbound"],"description":"`chat_upload` is your own upload. `conversation_inbound` is a file a customer sent in over WhatsApp — only ever returned to a key that also holds `conversations:read`.","isRequired":true,"uniqueKey":"data.asset.source","typeLabel":"enum\u003cstring>"},"created_at":{"oneOf":[{"type":"string","description":"When the asset was created (ISO 8601).","isRequired":true,"uniqueKey":"data.asset.created_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the asset was created (ISO 8601).","isRequired":true,"uniqueKey":"data.asset.created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.asset.created_at","typeLabel":"string | null"}},"required":["slug","media_id","meta_status","meta_uploaded_at","mime","bytes","filename","kind","caption","source","created_at"],"isRequired":true,"uniqueKey":"data.asset","typeLabel":"object"}},"required":["asset"],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["success","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"asset":{"slug":"\u003cstring>","media_id":"\u003cstring>","meta_status":"registered","meta_uploaded_at":"\u003cstring>","mime":"\u003cstring>","bytes":123,"filename":"\u003cstring>","kind":"image","caption":"\u003cstring>","source":"chat_upload","created_at":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"f322b438-a3ed-4566-8339-112c1ce5672a":{"description":"Validation / bad request (e.g. `invalid_request`, `invalid_cursor`, `invalid_template` for a Meta 4xx rejection of a template payload, which carries Meta's own detail as the message; note `outside_24h_window` is 409, not 400). Also `invalid_project_header` (any credential: `X-Paige-Project` was sent but blank) and, for multi-project MCP bearers, `project_required` (a mutation, or a read with no default, and no `X-Paige-Project`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4b6c923c-4d61-44ac-a9a8-8ae45f794dd9":{"description":"Missing or invalid API key (`api_key_required` / `invalid_api_key` / `invalid_token` for a revoked or expired OAuth bearer).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"31cd63e0-b257-4996-9572-bb675777c8e6":{"description":"Out of credits: `error.code` is `insufficient_credits`. Refused before any AI model runs, and nothing is charged. A project owner or workspace admin tops up in the Paige dashboard (Settings → Usage), then the call can be repeated.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5e6d7201-8bdd-49ae-8da3-39d28fb56ce4":{"description":"Key lacks the required scope, project inactive, or a write targets a platform-protected file (`insufficient_scope` / `project_inactive` / `subscription_inactive` / `protected_file`). Also `project_not_attached` (the `X-Paige-Project` project is not one this credential may act on — not attached to the MCP connection, or not the `pk_` key's own project; identical response whether or not it exists) and, for MCP bearers, `no_project_access` (the connection has no projects attached).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f97f2eee-07f6-416d-a61d-fb4ee70b0c5c":{"description":"Conflict — 24h window closed (`outside_24h_window`) or idempotency (`idempotency_in_progress` / `idempotency_key_mismatch`). On the build endpoints: `build_in_progress` (one build per project at a time), `plan_already_decided` or `engine_unavailable`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"2e77e5d5-f4cd-48a5-aa6c-b525a0b4c91e":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"214952d3-27a8-4732-b0ab-e7f57cc7af9f":{"description":"Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"2575d92a-2e06-4404-aa00-564540a1e283":{"description":"Rate limit (`rate_limited`) or daily send quota (`quota_exceeded`) exceeded. Carries `RateLimit-*` + `Retry-After` headers.","headers":{"RateLimit-Limit":{"description":"Requests permitted in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ea4474fc-0859-468d-abc9-4b007ed78970":{"description":"Unexpected server error (`server_error`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable, machine-readable error code.","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable message (safe to surface).","example":"Invalid request body","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"object","properties":{},"description":"Structured extras for codes that carry them — the keys depend on `code`. `quota_exceeded` carries `limit` + `resetAt`; most errors omit this field entirely.","uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Per-request id, also returned as the X-Request-Id header.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":{"code":"invalid_request","message":"Invalid request body","details":{}},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3a79e1aa-1872-42e8-a3e0-b0c146953b5a":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Project API key issued in Settings → API keys. Send it as `Authorization: Bearer pk_live_…`.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"2f61f958-73d8-4f9e-a417-8b9b7e2662ed":{"url":"https://api.paigeme.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Project API key issued in Settings → API keys. Send it as `Authorization: Bearer pk_live_…`.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Project API key issued in Settings → API keys. Send it as `Authorization: Bearer pk_live_…`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"greenpages","siteName":"paige","title":"Upload a media asset - paige","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T16:58:05.670Z","originalFileLocation":"api-reference/endpoints/media/upload-a-media-asset.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, \u0026quot;\u0026quot;) / getMediaId(\u0026quot;\u0026quot;)). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard. Three transports, pick one. Every one of them needs the file itself: - multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB. - JSON { \u0026quot;source_url\u0026quot;: \u0026quot;https://...\u0026quot; } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares. - JSON { \u0026quot;data\u0026quot;: \u0026quot;\u0026quot;, \u0026quot;filename\u0026quot;: \u0026quot;...\u0026quot;, \u0026quot;mime\u0026quot;: \u0026quot;...\u0026quot; } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped. name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow. Meta registration is best-effort, and the response tells you the truth about it. media_id is null and meta_status is \u0026quot;pending\u0026quot; when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is \u0026quot;expired\u0026quot; once the id passes Meta\u0026#x27;s 30-day lifetime. Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted. Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: \u0026quot;runtime\u0026quot; (a file the bot only sends) or intent: \u0026quot;template\u0026quot; never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free. Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push. Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload. Required scope: media:write\">\u003cmeta data-mint-head name=\"application-name\" content=\"paige\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload a media asset - paige\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, \u0026quot;\u0026quot;) / getMediaId(\u0026quot;\u0026quot;)). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard. Three transports, pick one. Every one of them needs the file itself: - multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB. - JSON { \u0026quot;source_url\u0026quot;: \u0026quot;https://...\u0026quot; } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares. - JSON { \u0026quot;data\u0026quot;: \u0026quot;\u0026quot;, \u0026quot;filename\u0026quot;: \u0026quot;...\u0026quot;, \u0026quot;mime\u0026quot;: \u0026quot;...\u0026quot; } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped. name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow. Meta registration is best-effort, and the response tells you the truth about it. media_id is null and meta_status is \u0026quot;pending\u0026quot; when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is \u0026quot;expired\u0026quot; once the id passes Meta\u0026#x27;s 30-day lifetime. Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted. Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: \u0026quot;runtime\u0026quot; (a file the bot only sends) or intent: \u0026quot;template\u0026quot; never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free. Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push. Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload. Required scope: media:write\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"paige\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://greenpages.mintlify.site/_mintlify/api/og/v2?division=Media\u0026amp;title=Upload+a+media+asset\u0026amp;description=Stores+one+file+against+the+project%2C+registers+it+with+Meta+for+sending%2C+and+returns+the+%60slug%60+your+bot+resolves+it+by+at+runtime+%28%60sendMedia%28to%2C+%22%3Cslug%3E%22%29%60+%2F+\u0026amp;theme=c4f8b57fd839e0b00425ea76\u0026amp;signature=31cb9d24245a6401bee623652ec41543b5e754121eed484b052ca3f204299cea\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upload a media asset - paige\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, \u0026quot;\u0026quot;) / getMediaId(\u0026quot;\u0026quot;)). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard. Three transports, pick one. Every one of them needs the file itself: - multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB. - JSON { \u0026quot;source_url\u0026quot;: \u0026quot;https://...\u0026quot; } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares. - JSON { \u0026quot;data\u0026quot;: \u0026quot;\u0026quot;, \u0026quot;filename\u0026quot;: \u0026quot;...\u0026quot;, \u0026quot;mime\u0026quot;: \u0026quot;...\u0026quot; } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped. name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow. Meta registration is best-effort, and the response tells you the truth about it. media_id is null and meta_status is \u0026quot;pending\u0026quot; when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is \u0026quot;expired\u0026quot; once the id passes Meta\u0026#x27;s 30-day lifetime. Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted. Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: \u0026quot;runtime\u0026quot; (a file the bot only sends) or intent: \u0026quot;template\u0026quot; never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free. Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push. Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload. Required scope: media:write\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://greenpages.mintlify.site/_mintlify/api/og/v2?division=Media\u0026amp;title=Upload+a+media+asset\u0026amp;description=Stores+one+file+against+the+project%2C+registers+it+with+Meta+for+sending%2C+and+returns+the+%60slug%60+your+bot+resolves+it+by+at+runtime+%28%60sendMedia%28to%2C+%22%3Cslug%3E%22%29%60+%2F+\u0026amp;theme=c4f8b57fd839e0b00425ea76\u0026amp;signature=31cb9d24245a6401bee623652ec41543b5e754121eed484b052ca3f204299cea\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/greenpages/x5PgeW5NAYRfgbaO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"paige\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#81D741\">\u003clink data-mint-head rel=\"canonical\" href=\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/media/upload-a-media-asset.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://howto.paigeme.dev/#organization\",\"name\":\"paige\",\"url\":\"https://howto.paigeme.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/greenpages/SGZewfX5ti1H1LmZ/logo/green-pages-logo.png?fit=max\u0026auto=format\u0026n=SGZewfX5ti1H1LmZ\u0026q=85\u0026s=9b5fbf18d11676f6513a94ed3366cb7f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://howto.paigeme.dev#website\",\"name\":\"paige\",\"url\":\"https://howto.paigeme.dev\",\"publisher\":{\"@id\":\"https://howto.paigeme.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset#webpage\",\"url\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset\",\"name\":\"Upload a media asset\",\"description\":\"Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, \\\"\\\") / getMediaId(\\\"\\\")). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard. Three transports, pick one. Every one of them needs the file itself: - multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB. - JSON { \\\"source_url\\\": \\\"https://...\\\" } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares. - JSON { \\\"data\\\": \\\"\\\", \\\"filename\\\": \\\"...\\\", \\\"mime\\\": \\\"...\\\" } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped. name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow. Meta registration is best-effort, and the response tells you the truth about it. media_id is null and meta_status is \\\"pending\\\" when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is \\\"expired\\\" once the id passes Meta's 30-day lifetime. Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted. Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: \\\"runtime\\\" (a file the bot only sends) or intent: \\\"template\\\" never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free. Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push. Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload. Required scope: media:write\",\"dateModified\":\"2026-11-20T16:58:05.670Z\",\"isPartOf\":{\"@id\":\"https://howto.paigeme.dev#website\"},\"breadcrumb\":{\"@id\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://howto.paigeme.dev/api-reference/endpoints/meta/the-openapi-31-spec-for-this-api-no-auth\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Media\",\"item\":\"https://howto.paigeme.dev/api-reference/endpoints/media/list-the-projects-media-assets\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Upload a media asset\",\"item\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset#apireference\",\"headline\":\"Upload a media asset\",\"name\":\"Upload a media asset\",\"description\":\"Stores one file against the project, registers it with Meta for sending, and returns the slug your bot resolves it by at runtime (sendMedia(to, \\\"\\\") / getMediaId(\\\"\\\")). Write the slug into a table row with POST /v1/tables/{table}/rows and the bot can send the asset later without ever touching the dashboard. Three transports, pick one. Every one of them needs the file itself: - multipart/form-data with a single part named file, plus optional name and caption text fields. Up to 20 MB. - JSON { \\\"source_url\\\": \\\"https://...\\\" } — Paige downloads it for you. Up to 20 MB. Only public http(s) URLs: private, loopback, link-local and other reserved addresses are refused (400 blocked_source_url), redirects are re-checked at every hop and capped, and a non-http(s) scheme is 400 invalid_source_url. Add filename / mime to override what the remote server declares. - JSON { \\\"data\\\": \\\"\\\", \\\"filename\\\": \\\"...\\\", \\\"mime\\\": \\\"...\\\" } — inline bytes, capped at 8 MB decoded, lower than the other two on purpose: base64 costs about 4/3 in transit and is buffered whole in memory, so large files belong on multipart or source_url. A data: URI prefix is accepted and stripped. name is the slug. Send it to choose the bot-facing name; omit it and the filename is used. It is normalized to lowercase letters, digits and hyphens. A slug that already exists is 409 SLUG_EXISTS — it is never overwritten, because the existing asset may already be referenced by deployed code or a published flow. Meta registration is best-effort, and the response tells you the truth about it. media_id is null and meta_status is \\\"pending\\\" when the file was stored but not registered (typically because no WhatsApp number is connected). The asset is still usable and Paige retries registration on a schedule; a failed register is never reported as a success. meta_status is \\\"expired\\\" once the id passes Meta's 30-day lifetime. Size and type. Oversize is 413 file_too_large; a type Paige cannot ingest is 415; an empty file is 400. Images, video, audio, PDF, DOCX, plain text and markdown are accepted. Uploading an image costs credits. Paige runs one AI vision call per image to write the knowledge description your bot answers from, and that call is billed to the project like any other AI usage — it shows up in Usage alongside builds. Out of credits is 402 insufficient_credits. Send describe_image: false to skip it: the file is still stored, still registered with Meta and still usable, it just gets no AI-written description and costs nothing. An upload with intent: \\\"runtime\\\" (a file the bot only sends) or intent: \\\"template\\\" never runs the vision call either. Non-image uploads (PDF, DOCX, text) use no AI at all and are always free. Two limits apply beyond the per-request throttle. Uploads are metered by BYTES as well as by request count, so a burst of large files can return 429 rate_limited even while you are inside the request-per-minute budget — retry after the window or upload in smaller batches. And each project has a total media storage ceiling: an upload that would exceed it is refused with 413 storage_limit_exceeded rather than quietly succeeding. GET /v1/media reports storage.used_bytes / storage.remaining_bytes so you can check before you push. Send an Idempotency-Key header to make a retry safe. The fingerprint covers the file bytes, so retrying the same upload replays the original response, while reusing the key for a different file is 409 idempotency_key_mismatch rather than a silently-dropped upload. Required scope: media:write\",\"url\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset\",\"mainEntityOfPage\":{\"@id\":\"https://howto.paigeme.dev/api-reference/endpoints/media/upload-a-media-asset#webpage\"},\"dateModified\":\"2026-11-20T16:58:05.670Z\",\"publisher\":{\"@id\":\"https://howto.paigeme.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://howto.paigeme.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"paige\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"paige\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/media/upload-a-media-asset.md","siteName":"paige","nav":{"global":null,"tabs":[{"tab":"Introduction","icon":"rocket","pages":[{"title":"Introduction","href":""}]},{"tab":"Learn","icon":"graduation-cap","pages":[{"title":"Learn","href":"/learn/foundations/what-is-an-llm"}]},{"tab":"Features","icon":"sparkles","pages":[{"title":"Features","href":"/agents/overview"}]},{"tab":"API","icon":"code","groups":[{"group":"Getting started","pages":[{"title":"The Paige API","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Scopes","href":"/api-reference/scopes"},{"title":"API conventions","sidebarTitle":"Conventions","href":"/api-reference/conventions"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Rate limits","href":"/api-reference/rate-limits"},{"title":"Idempotency","href":"/api-reference/idempotency"},{"title":"Webhooks","href":"/api-reference/webhooks"}]},{"group":"Endpoints","pages":[{"group":"Meta","pages":[{"title":"The OpenAPI 3.1 spec for this API (no auth)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/openapi.json","href":"/api-reference/endpoints/meta/the-openapi-31-spec-for-this-api-no-auth"},{"title":"The pasteable Paige integration agent skill (no auth)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/skill.md","href":"/api-reference/endpoints/meta/the-pasteable-paige-integration-agent-skill-no-auth"},{"title":"Smoke check, echoing the resolved project and scopes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/ping","href":"/api-reference/endpoints/meta/smoke-check-echoing-the-resolved-project-and-scopes"},{"title":"The projects this credential may act on","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/projects","href":"/api-reference/endpoints/meta/the-projects-this-credential-may-act-on"}]},{"group":"Messages","pages":[{"title":"Send a message (session, template, or interactive)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/messages","href":"/api-reference/endpoints/messages/send-a-message-session-template-or-interactive"},{"title":"Delivery status for one message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages/{id}","href":"/api-reference/endpoints/messages/delivery-status-for-one-message"},{"title":"Retrieve the media attached to a message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/messages/{id}/media","href":"/api-reference/endpoints/messages/retrieve-the-media-attached-to-a-message"}]},{"group":"Templates","pages":[{"title":"List message templates + approval status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/templates","href":"/api-reference/endpoints/templates/list-message-templates-+-approval-status"},{"title":"Create a WhatsApp message template","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates","href":"/api-reference/endpoints/templates/create-a-whatsapp-message-template"},{"title":"Upload the sample file a media header needs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/templates/header-sample","href":"/api-reference/endpoints/templates/upload-the-sample-file-a-media-header-needs"},{"title":"Delete a template (all localizations, or a single language)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/templates/{name}","href":"/api-reference/endpoints/templates/delete-a-template-all-localizations-or-a-single-language"}]},{"group":"Conversations","pages":[{"title":"List conversations (state + archive filter, keyset cursor)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/conversations","href":"/api-reference/endpoints/conversations/list-conversations-state-+-archive-filter-keyset-cursor"},{"title":"Messages in a conversation (keyset cursor)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/conversations/{id}/messages","href":"/api-reference/endpoints/conversations/messages-in-a-conversation-keyset-cursor"},{"title":"Set a conversation's state (validated against known states)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/conversations/{id}","href":"/api-reference/endpoints/conversations/set-a-conversations-state-validated-against-known-states"}]},{"group":"Contacts","pages":[{"title":"All messages for a contact (phone or BSUID)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contacts/{id}/messages","href":"/api-reference/endpoints/contacts/all-messages-for-a-contact-phone-or-bsuid"},{"title":"Update a contact name, tags or custom attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/contacts/{id}","href":"/api-reference/endpoints/contacts/update-a-contact-name-tags-or-custom-attributes"},{"title":"Archive a contact's chat","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contacts/{id}/archive","href":"/api-reference/endpoints/contacts/archive-a-contacts-chat"},{"title":"Bring a contact's chat back from Archived","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/contacts/{id}/unarchive","href":"/api-reference/endpoints/contacts/bring-a-contacts-chat-back-from-archived"}]},{"group":"Build","pages":[{"title":"List the bot code files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/files","href":"/api-reference/endpoints/build/list-the-bot-code-files"},{"title":"Read one bot code file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/files/{path}","href":"/api-reference/endpoints/build/read-one-bot-code-file"},{"title":"Create or edit a file via the code agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /v1/files/{path}","href":"/api-reference/endpoints/build/create-or-edit-a-file-via-the-code-agent"},{"title":"Author or edit bot code via the code agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code","href":"/api-reference/endpoints/build/author-or-edit-bot-code-via-the-code-agent"},{"title":"Confirm, reject or revise a build plan","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/code/plans/{id}/decision","href":"/api-reference/endpoints/build/confirm-reject-or-revise-a-build-plan"},{"title":"Promote dev to production","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/deploy","href":"/api-reference/endpoints/build/promote-dev-to-production"},{"title":"List the project's WhatsApp Flows","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/flows","href":"/api-reference/endpoints/build/list-the-projects-whatsapp-flows"},{"title":"Generate a new WhatsApp Flow via the flows sub-agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/flows","href":"/api-reference/endpoints/build/generate-a-new-whatsapp-flow-via-the-flows-sub-agent"},{"title":"Read one flow, including its JSON definition","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/flows/{id}","href":"/api-reference/endpoints/build/read-one-flow-including-its-json-definition"},{"title":"Update a flow via the flows sub-agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/flows/{id}","href":"/api-reference/endpoints/build/update-a-flow-via-the-flows-sub-agent"}]},{"group":"Chat","pages":[{"title":"Send Paige a message and get its reply","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/chat","href":"/api-reference/endpoints/chat/send-paige-a-message-and-get-its-reply"}]},{"group":"Broadcasts","pages":[{"title":"Create + save a reusable audience segment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/segments","href":"/api-reference/endpoints/broadcasts/create-+-save-a-reusable-audience-segment"},{"title":"Live contact count for a filter (no save)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/segments/preview","href":"/api-reference/endpoints/broadcasts/live-contact-count-for-a-filter-no-save"},{"title":"Assemble a broadcast for approval","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/broadcasts","href":"/api-reference/endpoints/broadcasts/assemble-a-broadcast-for-approval"},{"title":"Broadcast status + rollup counts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/broadcasts/{id}","href":"/api-reference/endpoints/broadcasts/broadcast-status-+-rollup-counts"},{"title":"Per-recipient drill-down","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/broadcasts/{id}/recipients","href":"/api-reference/endpoints/broadcasts/per-recipient-drill-down"}]},{"group":"Tables","pages":[{"title":"List the project's own database tables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tables","href":"/api-reference/endpoints/tables/list-the-projects-own-database-tables"},{"title":"Read one table's columns, types and primary key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tables/{table}/schema","href":"/api-reference/endpoints/tables/read-one-tables-columns-types-and-primary-key"},{"title":"Read rows from one of your tables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/tables/{table}/rows","href":"/api-reference/endpoints/tables/read-rows-from-one-of-your-tables"},{"title":"Insert rows into one of your tables","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/tables/{table}/rows","href":"/api-reference/endpoints/tables/insert-rows-into-one-of-your-tables"},{"title":"Delete the rows matching a filter","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/tables/{table}/rows","href":"/api-reference/endpoints/tables/delete-the-rows-matching-a-filter"},{"title":"Update the rows matching a filter","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/tables/{table}/rows","href":"/api-reference/endpoints/tables/update-the-rows-matching-a-filter"}]},{"group":"Media","pages":[{"title":"List the project's media assets","description":"Newest first. Each image also carries a short-lived `preview_url`; other kinds have `null` there, so fetch their bytes through `GET /v1/media/{slug}`.\n\n**Only your own uploads by default.** Media that CUSTOMERS sent in over WhatsApp is a separate class of data (`source: \"conversation_inbound\"`) and is excluded. Pass `include_inbound=true` to include it — that additionally requires the `conversations:read` scope, and a key without it gets `403` rather than a quietly-filtered list.\n\n`include_usage=true` adds `used_in`, the flows and code files referencing each slug. It costs one read per project file, so it is off by default.\n\nEvery response also carries `storage`: how many bytes this project is storing, the ceiling, and the headroom left. An upload past the ceiling is refused with `413 storage_limit_exceeded`, so read this before a bulk sync. Media customers sent in over WhatsApp counts toward the total even when it is filtered out of `assets`.\n\n**Required scope:** `media:read`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/media","href":"/api-reference/endpoints/media/list-the-projects-media-assets"},{"title":"Upload a media asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/media","href":"/api-reference/endpoints/media/upload-a-media-asset"},{"title":"Retrieve one media asset and a signed URL","description":"The asset plus a short-lived signed `url` for its bytes. The URL is unauthenticated once minted, so treat it as a secret and let it expire — `expires_in` is capped, deliberately, so a scoped read cannot be turned into a permanent public link.\n\n`download=true` signs it with a download disposition (the browser saves the file) instead of an inline one.\n\nAn unknown slug is `404 ASSET_NOT_FOUND`. So is a slug that exists but belongs to inbound customer media when the key lacks `conversations:read` — identical response either way, so probing slugs reveals nothing about what a customer sent in.\n\n**Required scope:** `media:read`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/media/{slug}","href":"/api-reference/endpoints/media/retrieve-one-media-asset-and-a-signed-url"},{"title":"Delete a media asset","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/media/{slug}","href":"/api-reference/endpoints/media/delete-a-media-asset"}]},{"group":"Webhooks","pages":[{"title":"List webhook registrations (never the secret)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks","href":"/api-reference/endpoints/webhooks/list-webhook-registrations-never-the-secret"},{"title":"Register an outbound webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/webhooks","href":"/api-reference/endpoints/webhooks/register-an-outbound-webhook"},{"title":"Retrieve one webhook registration (never the secret)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/webhooks/{id}","href":"/api-reference/endpoints/webhooks/retrieve-one-webhook-registration-never-the-secret"},{"title":"Delete a webhook registration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/webhooks/{id}","href":"/api-reference/endpoints/webhooks/delete-a-webhook-registration"},{"title":"Partial update of a webhook registration","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /v1/webhooks/{id}","href":"/api-reference/endpoints/webhooks/partial-update-of-a-webhook-registration"}]}]}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations"}]},{"tab":"Tips \u0026 Tricks","icon":"lightbulb","pages":[{"title":"Tips \u0026 Tricks","href":"/guides/prompting"}]},{"tab":"Changelog","icon":"history","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Upload a media asset - paige","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-x4vGgoST.js","snippetPresets-BGlsYH49.js","utils-D225GpYB.js","style-to-object-BY3JEAdk.js","utils-fb7dxv-3.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-D0sNzoEe.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C4iMfrOs.js","_Uint8Array-DDor1j2p.js","isObject-FP1Yky1u.js","ApiExamples-Bw_TWYoP.js","usePlaygroundInputsStore-DLRpNM_Z.js","shallow-DCZ_mvT2.js","isEqual-BZMHHGz2.js","CodeSnippets-CqYNT6UN.js","CodeSnippet-AsYrl7_f.js","getApiPlaygroundDisplay-B1HdZsAn.js","Page-COAeG2by.js","DynamicMarkdown-Bg54PExR.js","SectionHeading-BVOfbSTS.js","icon-Bwg0LftJ.js","MethodPill-ETXe5J4U.js","getPastedJson-6m1DH7UM.js","Check2Icon-Bz4v4IkN.js","axios-CsQoIw0U.js","Markdown-CYkmN8yk.js","AssistantPageLink-BZUrxqjy.js","dist-C-58LlaB.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}