Omnara Relay API
The relay API from Omnara — 2 operation(s) for relay.
The relay API from Omnara — 2 operation(s) for relay.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/omnara-com:omnara-com-relay-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Omnara Relay API
description: UNSTABLE -- This API is under active development. Endpoints, request/response shapes, and authentication requirements may change without notice. Do not build production integrations against these endpoints without contacting the Omnara team first.
version: 0.1.0-unstable
tags:
- name: Relay
paths:
/api/v1/relay/register:
post:
tags:
- Relay
summary: Register Relay Instance
description: 'Register a relay client and return a short-lived relay token.
The relay token is used to authenticate the client''s WebSocket
connection to the session relay channel.'
operationId: register_relay_instance_api_v1_relay_register_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RelayRegisterRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RelayRegisterResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
x-stability: unstable
/api/v1/relay/refresh:
post:
tags:
- Relay
summary: Refresh Relay Token
description: 'Refresh an expiring relay token and return a new one.
Validates the existing token, verifies ownership, and issues
a replacement token with the same session and client kind.'
operationId: refresh_relay_token_api_v1_relay_refresh_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RelayRefreshRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RelayRefreshResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
x-stability: unstable
components:
schemas:
RelayRefreshRequest:
properties:
relay_token:
type: string
title: Relay Token
description: Existing relay token to refresh.
type: object
required:
- relay_token
title: RelayRefreshRequest
description: Request to refresh an expiring relay token.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
RelayRefreshResponse:
properties:
relay_token:
type: string
title: Relay Token
description: New relay token for websocket authentication.
relay_token_expires_in:
type: integer
title: Relay Token Expires In
description: Seconds until the new relay token expires.
type: object
required:
- relay_token
- relay_token_expires_in
title: RelayRefreshResponse
description: Response containing a new relay token after refresh.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
RelayRegisterResponse:
properties:
user_session_id:
type: string
title: User Session Id
description: Identifier of the user session scoped to this relay token.
relay_token:
type: string
title: Relay Token
description: Short-lived relay token for websocket authentication.
relay_token_expires_in:
type: integer
title: Relay Token Expires In
description: Seconds until the relay token expires.
relay_ws_path:
type: string
title: Relay Ws Path
description: WebSocket path for the relay endpoint.
relay_heartbeat_interval_sec:
type: integer
title: Relay Heartbeat Interval Sec
description: Heartbeat interval clients should respect.
type: object
required:
- user_session_id
- relay_token
- relay_token_expires_in
- relay_ws_path
- relay_heartbeat_interval_sec
title: RelayRegisterResponse
description: Response containing relay connection credentials after registration.
RelayRegisterRequest:
properties:
user_session_id:
type: string
title: User Session Id
description: Identifier of the user session the relay client will operate within.
client_kind:
anyOf:
- $ref: '#/components/schemas/RelayClientKind'
- type: 'null'
description: Identifies the caller type (cli, web, mobile, or voice).
default: web
type: object
required:
- user_session_id
title: RelayRegisterRequest
description: Request to register a new relay client for a user session.
RelayClientKind:
type: string
enum:
- cli
- web
- mobile
- voice
title: RelayClientKind
description: Type of client connecting to the relay.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
x-stability: unstable