Skip to main content
Find the symptom or the message you see. Most failures come from the key, from a setting the network requires, or from media that was not uploaded to PostQueen first.

The agent will not connect over MCP

The key address answers 400 with Invalid API Key when it does not know the key. Copy the key again from Connections > API Keys and paste the whole address, https://api.postqueen.ai/mcp/YOUR_API_KEY, with no space or quote around the key. Only a workspace Admin or Super Admin can reveal the key; other members see it masked.
With the Bearer header on https://api.postqueen.ai/mcp, Missing Authorization header means the agent sent no header, and Invalid API Key or OAuth token means the key in it is wrong. The header must read Authorization: Bearer YOUR_API_KEY.
An admin may have rotated the key under Connections > API Keys, which stops the old key everywhere at once, or revoked a sign-in under Connections > Approved Apps. Put the new key in every agent that used the old one, or sign in again.
Many agents load their tools when a session starts. Start a new session, or reload the servers: /mcp in Claude Code, /reload-mcp in Hermes Agent, a restart in most editors. Then ask the agent to list your PostQueen channels.
Some agents start a sign-in when a server refuses them, so a wrong key can look like a sign-in request. Check the key first. If the agent supports it, you can use the sign-in address instead.
  • Only a workspace Admin or Super Admin can approve the sign-in. Ask one to connect the agent.
  • Paste https://api.postqueen.ai/mcp-oauth-dynamic with no slash at the end, and leave any client ID and secret fields empty.
  • Gemini CLI, Grok, Grok Bot, Perplexity Computer and NanoClaw cannot sign in. Give them the API key, in the key address or the Bearer header.
PostQueen has not completed this sign-in end to end yet. If it fails, use the key address.
It is connected to docs.postqueen.ai/mcp, which searches these docs only. Connect it to an address from MCP server instead.

An MCP tool returns an error

The Upload Media panel shows only in apps that can display MCP panels, such as Claude, Claude Cowork and ChatGPT. Elsewhere, give the agent a public link to the file so it can use uploadFromUrlTool.
No MCP tool can delete a post, change its text or time, or move it between draft and scheduled. Check the calendar, and do it there, or with the CLI or the API.
A video is prepared after it is uploaded, and its file can change when that is done. From the upload panel, wait until uploadWidgetStatusTool says ready before the post goes out. For a video from a link, check the post on your calendar before its time.

A CLI command fails

When the API refuses a command, the CLI prints one line to stderr and exits with code 1. The line says which command gave up, then what the API answered:

The key

auth:status names the method it uses. If it says OAuth2 although you set a key, a saved login in ~/.postqueen/credentials.json is overriding the key: postqueen auth:logout removes it.

Flags

These are caught before anything is sent. Each prints a line starting with on stderr, and the command exits 1. A usage error ends with the help to read, such as Run "postqueen posts:create --help" for usage.

Posts

Upload errors are on upload media. A post whose analytics answer {"missing": true} is fixed on analytics.

Common mistakes

Most commands print a status line before the JSON. Drop it: postqueen integrations:list | tail -n +2 | jq '.'. posts:missing prints JSON only, so it needs no tail.
-s is the date on posts:create and the status on posts:status. -d is minutes between items on posts:create, days on the analytics commands, and JSON input on integrations:trigger.
The job or the agent runs in its own environment and does not read your shell profile. Set POSTQUEEN_API_KEY there, and send stderr to the log (2>&1) so the error is not lost.
From 2.0.24, auth:status exits 1 when no key is set, when the API refuses it, and when it could not be checked, so postqueen auth:status > /dev/null || exit 1 works. Older versions exit 0 in every case: update with npm install -g postqueen@latest.

Something the route cannot do

Some things are not a failure: the route you use does not offer them yet. What MCP, the CLI and the API can each do is on AI agents.

Still stuck?

If you hit something that is not covered here, email support@postqueen.ai with what you saw and when. Send the exact command or prompt, the agent you use and the full message. Never send your API key.
Last modified on September 23, 2026