Skip to main content

Claude protocol

Connect with the Claude Messages format.

Service address

PurposeMethodPath
MessagesPOST/v1/messages

Minimal request

Use the root Base URL and send credentials in the x-api-key header.

curl https://api.popgo.site/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "YOUR_MODEL",
"max_tokens": 64,
"messages": [
{"role": "user", "content": "Reply with a connection confirmation"}
]
}'

Verify

A successful response contains content blocks. Check x-api-key for authentication failures and confirm that the client appends /v1/messages for path failures.