Every error Ask PCIFIC and its documents can return, what causes it and how to fix it, with the mistakes integrations make most often first.
Most Ask PCIFIC error bodies have a docs link to their section on this page (or, for key, credit and limit errors, on the shared errors page). A streamed answer that fails after it started ends with an error event carrying the same fields. What an error body holds is explained in Errors, limits and retries.
The ways integrations most often go wrong, written as what you see. Each one links to the errors it causes.
Ask PCIFIC answers only from your live documents. With none added, or with every version still waiting for approval, each question is 409 ASK_NO_DOCUMENTS. Add a document with POST /api/v1/documents, and approve it on the dashboard if your review mode is approve_first.
The question goes in a field called question. Sending it as q, message or prompt leaves question missing: 400 ASK_QUESTION_MISSING. A question over 1,500 characters, such as a whole chat history pasted in, is 400 ASK_QUESTION_TOO_LONG: send only the newest question and carry the chat on with conversationId.
Send pasted text with a title, or a public https web page in url, but not both: 400 DOCUMENT_CONTENT_MISSING otherwise, and text with no title is 400 DOCUMENT_TITLE_MISSING. A file upload needs its form part named file (400 DOCUMENT_FILE_MISSING). A scanned PDF is only a picture of text, so it is 400 DOCUMENT_EMPTY: upload the original document instead.
A document's url must be a public https address. http, an address with a user name or password, or a page on your own network such as an intranet is 400 DOCUMENT_ADDRESS_NOT_ALLOWED. A page PCIFIC cannot open is 502 DOCUMENT_FETCH_FAILED.
conversationId must be the one an earlier answer gave you for this business. A made-up id, or one over 30 days old, is 404 ASK_CONVERSATION_NOT_FOUND. With keepChats off there are no chats to carry on: 400 ASK_CHATS_OFF.
Sending item.id without listing lookup is 400 ASK_ITEM_LOOKUP_NOT_CONFIGURED, before any AI call or usage. Set up lookup, or leave item.id out and send the listing details instead. The lookup address must contain {id}, where PCIFIC puts the item's id, and be a public https address: 400 INVALID_ITEM_SOURCE otherwise. Test it with POST /api/v1/ask-pcific/item-source/test before buyers do. Your address answering 404 is ASK_ITEM_NOT_FOUND, and an error, a redirect or more than 5 seconds is 502 ASK_ITEM_LOOKUP_FAILED.
Approving or rejecting a waiting version, and changing reviewMode, are for a person on the dashboard, never an API key: 403 DOCUMENT_DECISION_NEEDS_DASHBOARD and 403 REVIEW_MODE_NEEDS_DASHBOARD.
HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 403. PCIFIC knows who is calling, but this caller may not do this right now.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 404. What the address points at does not exist for this key, or no longer exists.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 404. What the address points at does not exist for this key, or no longer exists.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 409. The request is well formed, but it does not fit where the work is now.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 429. Too much was sent too fast, or a daily or spending limit was reached. Retry-After says when to try again.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 502. PCIFIC, or a service it relies on, could not answer.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 502. PCIFIC, or a service it relies on, could not answer.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 503. PCIFIC, or a service it relies on, is too busy or not available right now.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 502. PCIFIC, or a service it relies on, could not answer.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 504. PCIFIC took longer to answer than the address allows.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"question":"Can I return this coat if I change my mind?","quotes":true,"item":{"type":"listing","title":"Wool coat, navy, size M","details":{"condition":"Used, good","status":"Available"}}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X PUT "https://business.pcific.ai/api/v1/ask-pcific/settings" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"supportLink":"https://example.com/help","webSearch":false}'HTTP 403. PCIFIC knows who is calling, but this caller may not do this right now.
curl -X PUT "https://business.pcific.ai/api/v1/ask-pcific/settings" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"supportLink":"https://example.com/help","webSearch":false}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X PUT "https://business.pcific.ai/api/v1/ask-pcific/item-source" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"url":"https://api.example.com/items/{id}","headerName":"Authorization","headerValue":"Bearer your-items-api-key"}'HTTP 409. The request is well formed, but it does not fit where the work is now.
curl -X POST "https://business.pcific.ai/api/v1/ask-pcific/item-source/test" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"id":"coat-8841","buyer":{"accountId":"opaque-buyer-1"}}'HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X GET "https://business.pcific.ai/api/v1/ask-pcific/unanswered" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 409. The request is well formed, but it does not fit where the work is now.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 429. Too much was sent too fast, or a daily or spending limit was reached. Retry-After says when to try again.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 503. PCIFIC, or a service it relies on, is too busy or not available right now.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 408. The request body did not finish arriving in time, so nothing was done.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 413. The request is bigger than this address accepts.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 413. The request is bigger than this address accepts.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 413. The request is bigger than this address accepts.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 415. The Content-Type header names a format this address does not take.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 422. The body was read, but what it holds cannot be used.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 502. PCIFIC, or a service it relies on, could not answer.
curl -X POST "https://business.pcific.ai/api/v1/documents" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F "file=@policy.txt"HTTP 404. What the address points at does not exist for this key, or no longer exists.
curl -X GET "https://business.pcific.ai/api/v1/documents/$ID" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 429. Too much was sent too fast, or a daily or spending limit was reached. Retry-After says when to try again.
curl "https://business.pcific.ai/api/v1/documents/$ID" -H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 409. The request is well formed, but it does not fit where the work is now.
curl -X POST "https://business.pcific.ai/api/v1/documents/$ID/refresh" \
-H "Authorization: Bearer $PCIFIC_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)"HTTP 403. PCIFIC knows who is calling, but this caller may not do this right now.
curl "https://business.pcific.ai/api/v1/documents/$ID" -H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 400. The request itself needs changing: a field, header, address or body is not in the form this address takes.
curl "https://business.pcific.ai/api/v1/documents/$ID" -H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 409. The request is well formed, but it does not fit where the work is now.
curl "https://business.pcific.ai/api/v1/documents/$ID" -H "Authorization: Bearer $PCIFIC_TEST_KEY"HTTP 409. The request is well formed, but it does not fit where the work is now.
curl "https://business.pcific.ai/api/v1/documents" -H "Authorization: Bearer $PCIFIC_TEST_KEY"