Skip to main content
You need a ReyGrid API key and the ID of an agent. Pick the way you want to call the API.
1

Set your API key

2

Check the API is up

GET /ping needs no authentication.
3

Validate your key

A valid key returns "valid": true with your usage.
4

Send a message

The reply text is at output.reply.content.
Passing a stable userId gives that user a persistent conversation, so you don’t have to resend history. See Persistent conversations.

Next steps

Authentication

How API keys are sent and what 401s look like.

Stream replies

Get tokens as they are generated.

API reference

Every endpoint with an interactive playground.

Handle errors

Error payloads and status codes.