The agent will not connect over MCP
The connection fails with Invalid API Key
The connection fails with Invalid API Key
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.The connection fails with 401
The connection fails with 401
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.It worked before, and stopped
It worked before, and stopped
Connected, but no PostQueen tools
Connected, but no PostQueen tools
/mcp in Claude Code, /reload-mcp in Hermes Agent, a restart in most editors. Then ask the agent to list your PostQueen channels.The agent asks to sign in on the key address
The agent asks to sign in on the key address
The sign-in fails
The sign-in fails
- 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-dynamicwith 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.
The agent answers from the docs but cannot post
The agent answers from the docs but cannot post
docs.postqueen.ai/mcp, which searches these docs only. Connect it to an address from MCP server instead.An MCP tool returns an error
No upload panel appears
No upload panel appears
uploadFromUrlTool.The agent says it deleted or moved a post
The agent says it deleted or moved a post
A video post failed
A video post failed
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 code1. 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
{"missing": true} is fixed on analytics.
Common mistakes
jq fails on the first line
jq fails on the first line
postqueen integrations:list | tail -n +2 | jq '.'. posts:missing prints JSON only, so it needs no tail.The same letter means two things
The same letter means two things
-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.It works in my terminal, not in the job or the agent
It works in my terminal, not in the job or the agent
POSTQUEEN_API_KEY there, and send stderr to the log (2>&1) so the error is not lost.A script checks the key with auth:status
A script checks the key with auth:status
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.A file path or a link in -m
A file path or a link in -m
-m takes only a path returned by postqueen upload. Upload the file first. A MOV has to finish converting to MP4 before it can go into a post: see upload media.