Errors
The codes the API and MCP server return when a request fails, and what to do about each one.
Every error code
#A failed request returns a code as well as an HTTP status, so your code can tell a bad key apart from a plan limit or a rate limit. Every API error links to its own entry on this page.
Authentication
- What happened
- The request didn't include an API key.
- What to do
- Send your key in the Authorization header as a Bearer token.
{
"error": {
"code": "missing_api_key",
"message": "The request didn't include an API key.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#missing_api_key"
}
}- What happened
- We couldn't recognize this API key.
- What to do
- Copy the whole key from Deploy and try again.
{
"error": {
"code": "invalid_api_key",
"message": "We couldn't recognize this API key.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#invalid_api_key"
}
}- What happened
- This key has been revoked.
- What to do
- Create a new key in Deploy and update your client.
{
"error": {
"code": "api_key_revoked",
"message": "This key has been revoked.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#api_key_revoked"
}
}- What happened
- This key has expired.
- What to do
- Create a new key in Deploy and update your client.
{
"error": {
"code": "api_key_expired",
"message": "This key has expired.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#api_key_expired"
}
}- What happened
- The MCP request didn't include a connection or API key.
- What to do
- Connect your MCP app to Deploy, or send an API key as a Bearer token.
{
"error": {
"code": "missing_credentials",
"message": "The MCP request didn't include a connection or API key.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#missing_credentials"
}
}- What happened
- The MCP connection token isn't valid or has expired.
- What to do
- Refresh the token, or connect the app to Deploy again.
{
"error": {
"code": "invalid_token",
"message": "The MCP connection token isn't valid or has expired.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#invalid_token"
}
}- What happened
- This MCP connection was removed or lost access.
- What to do
- Connect the app to Deploy again.
{
"error": {
"code": "token_revoked",
"message": "This MCP connection was removed or lost access.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#token_revoked"
}
}- What happened
- This credential can read, but this request needs write access.
- What to do
- Use a credential with write access, then try again.
{
"error": {
"code": "insufficient_scope",
"message": "This credential can read, but this request needs write access.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#insufficient_scope"
}
}Access & limits
- What happened
- The workspace's plan doesn't include the API, or a destination in the request is a social account that is connected to another Deploy account on the Free plan.
- What to do
- Upgrade in Deploy, then try again with the same key or connection. For a shared account, drop it from the request to post to the others.
{
"error": {
"code": "plan_required",
"message": "The workspace's plan doesn't include the API, or a destination in the request is a social account that is connected to another Deploy account on the Free plan.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#plan_required"
}
}- What happened
- The plan's posts for this month have all been posted.
- What to do
- Wait for the reset date in the message, or upgrade in Deploy.
{
"error": {
"code": "usage_limit_exceeded",
"message": "The plan's posts for this month have all been posted.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#usage_limit_exceeded"
}
}- What happened
- The person who created this key no longer has access to the workspace.
- What to do
- Ask someone with workspace access to create a new key.
{
"error": {
"code": "access_revoked",
"message": "The person who created this key no longer has access to the workspace.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#access_revoked"
}
}- What happened
- The key's workspace is archived.
- What to do
- Use a key from an active workspace.
{
"error": {
"code": "workspace_archived",
"message": "The key's workspace is archived.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#workspace_archived"
}
}- What happened
- This credential reached a per-minute request limit or the plan's daily API post limit, or the workspace has as many link imports (or the account as many photo uploads) running as it can.
- What to do
- Wait the seconds in Retry-After, then try again. A daily_post_limit detail means the day's API posts are used up until midnight UTC. An imports_in_flight detail means an import has to finish first; an images_in_flight detail means a photo upload does.
{
"error": {
"code": "rate_limited",
"message": "The Standard plan posts up to 30 posts a day through the API in your account, and today's are used. It resets at midnight UTC (2026-10-02T00:00:00.000Z). Posts made in the app don't count.",
"details": [
{
"path": "",
"code": "daily_post_limit",
"message": "The Standard plan posts up to 30 posts a day through the API in your account, and today's are used. It resets at midnight UTC (2026-10-02T00:00:00.000Z). Posts made in the app don't count."
}
],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#rate_limited"
}
}Requests
- What happened
- We couldn't read this request or one of its headers.
- What to do
- Check the JSON body and headers, then send it again.
{
"error": {
"code": "invalid_request",
"message": "We couldn't read this request or one of its headers.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#invalid_request"
}
}- What happened
- One or more fields need fixing.
- What to do
- Read the details for the field paths and fixes, then send the request again.
{
"error": {
"code": "validation_failed",
"message": "One or more fields need fixing.",
"details": [
{
"path": "destinations[0].options.privacy",
"code": "required",
"message": "destinations[0].options.privacy is required."
}
],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#validation_failed"
}
}- What happened
- This Idempotency-Key was used for a different request.
- What to do
- Use a new key for a new request, or resend the original request unchanged.
{
"error": {
"code": "idempotency_key_reused",
"message": "This Idempotency-Key was used for a different request.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#idempotency_key_reused"
}
}- What happened
- A request using this Idempotency-Key is still running.
- What to do
- Wait briefly and retry with the same key.
{
"error": {
"code": "idempotency_key_in_progress",
"message": "A request using this Idempotency-Key is still running.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#idempotency_key_in_progress"
}
}- What happened
- There's nothing with that id in this workspace, or no endpoint at that path.
- What to do
- Check the id, the path, and which workspace your key or connection belongs to.
{
"error": {
"code": "not_found",
"message": "There's nothing with that id in this workspace, or no endpoint at that path.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#not_found"
}
}- What happened
- This endpoint doesn't take that HTTP method.
- What to do
- Use a method from the Allow header, or check the endpoint in the API reference.
{
"error": {
"code": "method_not_allowed",
"message": "This endpoint doesn't take that HTTP method.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#method_not_allowed"
}
}- What happened
- This post or destination can't take that action in its current state.
- What to do
- Read its current status, then choose an action it allows.
{
"error": {
"code": "invalid_state",
"message": "This post or destination can't take that action in its current state.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#invalid_state"
}
}Media
- What happened
- The video is still processing.
- What to do
- Wait the time in Retry-After, check the video again, then retry.
{
"error": {
"code": "media_not_ready",
"message": "The video is still processing.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#media_not_ready"
}
}Platform & server
- What happened
- Something broke on our side.
- What to do
- Retry. If it keeps happening, contact us with the request id.
{
"error": {
"code": "internal_error",
"message": "Something broke on our side.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#internal_error"
}
}- What happened
- A connected platform didn't answer as expected.
- What to do
- Try again shortly. If it keeps happening, check the destination in Deploy.
{
"error": {
"code": "platform_error",
"message": "A connected platform didn't answer as expected.",
"details": [],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#platform_error"
}
}Detail codes
#Some errors carry details that point at the exact problem, such as a caption that runs too long for one destination or the day's post limit being reached.
Landscape videos
#Facebook Reels, YouTube Shorts and TikTok need a vertical video, and Instagram Reels shows a landscape one with bars. If you post a landscape video to any of them (or a square one to Facebook Reels, the only one that refuses square) and send no vertical_fit, the request fails with validation_failed and a video_needs_vertical_fit detail. Its orientation says whether the video is landscape or square, and its options list the exact fixes: set vertical_fit to blur (the video centered over a blurred copy of itself) or bars (black above and below), or remove the destinations it names. X, Threads and Bluesky always get the original video. With Instagram alone it isn't an error: the draft's issues carry the same detail as a warning. A media object's orientation tells you a video is landscape or square before you post.
{
"error": {
"code": "validation_failed",
"message": "This video is landscape, and Facebook Reels and TikTok need a vertical video. Set vertical_fit to \"blur\" or \"bars\" to fit it to vertical, or leave those destinations out.",
"details": [
{
"path": "vertical_fit",
"code": "video_needs_vertical_fit",
"orientation": "landscape",
"message": "This video is landscape, and Facebook Reels and TikTok need a vertical video. Set vertical_fit to \"blur\" or \"bars\" to fit it to vertical, or leave those destinations out.",
"options": [
{
"fix": "set_vertical_fit",
"field": "vertical_fit",
"values": [
"blur",
"bars"
]
},
{
"fix": "remove_destinations",
"destination_ids": [
"dest_cmf3k1q7z0000ab12cd34ef56",
"dest_cmf3k1q7z0001ab12cd34ef56"
]
}
]
}
],
"request_id": "req_8f14e45fceea167a",
"doc_url": "https://deploy.social/docs/api/errors#video_needs_vertical_fit"
}
}