REST API
Use ChatRIP from any HTTP client
Create a developer key from your ChatRIP account. Wallet-capable agents can use the separate x402 paid endpoint.curl https://chatrip.app/api/v1/legends \
-H 'authorization: Bearer chrip_sk_...'
curl -X POST https://chatrip.app/api/v1/legends/chat \
-H 'authorization: Bearer chrip_sk_...' \
-H 'content-type: application/json' \
--data '{
"legendSlug": "marcus-aurelius",
"prompt": "How should I handle distraction today?"
}'
curl -X POST https://chatrip.app/api/v1/legends/chat/x402 \
-H 'content-type: application/json' \
--data '{
"legendSlug": "marcus-aurelius",
"prompt": "How should I handle distraction today?"
}'Set up ChatRIP REST API access for this agent.
Bearer-key provisioning:
1. Ask me to create a ChatRIP developer API key from https://chatrip.app/mcp-setup.
2. Store the key securely as CHATRIP_API_KEY.
3. Do not write the raw key to source control.
4. Make sure the linked ChatRIP account has credits before running paid legend chat calls.
x402 payment option:
If this agent supports x402, use https://chatrip.app/api/v1/legends/chat/x402 for paid stateless chat requests. Handle HTTP 402 by paying the advertised USDC requirement, then retry with PAYMENT-SIGNATURE. Do not send Authorization bearer keys to the x402 endpoint, and do not send conversationId.
API:
List legends: https://chatrip.app/api/v1/legends
Ask a legend with bearer auth: https://chatrip.app/api/v1/legends/chat
Ask a legend with x402 payment: https://chatrip.app/api/v1/legends/chat/x402
Bearer authentication: Authorization: Bearer $CHATRIP_API_KEY
After setup, list legends and then ask marcus-aurelius a short test question. Return the answer plus citations if present.
Deprovisioning:
When I ask you to remove access, tell me the key prefix in use and ask me to revoke it from the ChatRIP MCP/API setup page.- Developer keys are issued from a signed-in ChatRIP account.
- ChatRIP account credits are topped up on the ChatRIP domain.
- x402 calls are stateless paid requests and do not require a ChatRIP account key.
- Only the key prefix is shown later, so copy the raw key when it is created.
- Revoke keys from the setup page when an agent, laptop, or deployment no longer needs access.