Relay REST API

Capture agent sessions from developer machines and review them in Architect. Twenty-six routes split between CLI ingest (org secret) and dashboard (Cognito JWT).

dev · https://api.dev.relay.oprag.ai

Base URL: https://api.dev.relay.oprag.ai. All JSON bodies use Content-Type: application/json. Errors return { error, code }.

Choose your path
AudienceAuthStart here
Relay CLI / automationX-Relay-Secret or Bearer sk_live_*CLI ingest
Architect dashboardCognito JWTDashboard API
Browser bootstrapNonePlatform
All 26 routes
EndpointCredentialWhat it does
GET /healthPublicLiveness probe for the Relay API.
GET /configPublicCognito pool/client IDs and API URL for the Architect SPA bootstrap.
POST /v1/organizationsCognito JWTCreate an organization for the signed-in user who has no tenant yet.
GET /v1/organizations/meCognito JWTReturn the caller's organization.
PATCH /v1/organizations/meCognito JWTReplace the organization display name.
GET /v1/organizations/me/membersCognito JWTList active and invited organization members.
POST /v1/organizations/me/membersCognito JWTInvite a user to the organization by email.
POST /v1/organizations/me/secretsCognito JWTIssue a new organization secret for CLI ingest.
GET /v1/organizations/me/secretsCognito JWTList organization secrets (metadata only — no plaintext).
DELETE /v1/organizations/me/secrets/{secretId}Cognito JWTRevoke an organization secret.
POST /v1/environmentsOrg secretRegister or update a developer machine environment from the CLI.
POST /v1/environments/{environmentId}/heartbeatOrg secretRefresh last-seen timestamp for a registered environment.
GET /v1/organizations/me/environmentsCognito JWTList developer environments registered for the organization.
GET /v1/organizations/me/environments/{environmentId}Cognito JWTFetch one developer environment by id.
DELETE /v1/organizations/me/environments/{environmentId}Cognito JWTRevoke a developer environment.
GET /v1/agentsCognito JWTList supported agent definitions in the Relay catalog.
GET /v1/organizations/me/agentsCognito JWTList agent installations for the organization.
POST /v1/organizations/me/agentsCognito JWTCreate an agent installation from the dashboard.
PATCH /v1/organizations/me/agents/{installationId}Cognito JWTUpdate an agent installation's version, config, or status.
POST /v1/environments/{environmentId}/agentsOrg secretRegister or upsert an agent installation from the CLI.
POST /v1/sessionsOrg secretOpen a new agent session for event capture.
POST /v1/sessions/{sessionId}/eventsOrg secretAppend one or more session events (CLI hooks and sync). Each event's payload is optional and defaults to {}.
POST /v1/sessions/{sessionId}/completeOrg secretMark a session completed or failed.
GET /v1/organizations/me/sessionsCognito JWTList captured sessions for review in Architect.
GET /v1/organizations/me/sessions/{sessionId}Cognito JWTFetch one session with metadata for the review UI.
GET /v1/organizations/me/sessions/{sessionId}/eventsCognito JWTPage through events for a session.

Ready to ship?

Get started free