Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
description: The Relayger HTTP API. Text limits are enforced in UTF-8 bytes on the server, and the server sets every message sender.
title: Relayger Session API
version: 0.13.15
servers:
- url: https://relayger.com
security:
- bearerAuth: []
- sessionCookie: []
tags:
- name: Session
paths:
/v1/session:
delete:
operationId: delete_v1_session
parameters:
- description: The exact origin of this service.
in: header
name: Origin
required: true
schema:
format: uri
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/OK'
description: Success; a change responds only after its transaction commits.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Authorization, validation, conflict or server error
security: []
summary: 'Web: with the exact Origin, end the database session and clear the cookie.'
tags:
- Session
post:
operationId: post_v1_session
parameters:
- description: The exact origin of this service.
in: header
name: Origin
required: true
schema:
format: uri
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SessionInput'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SessionResult'
description: Success; a change responds only after its transaction commits.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Authorization, validation, conflict or server error
security: []
summary: 'Web: exact Origin; an HttpOnly session of at most 8 hours.'
tags:
- Session
components:
schemas:
SessionResult:
$ref: '#/components/schemas/Me'
OK:
additionalProperties: false
properties:
ok:
type: boolean
required:
- ok
type: object
Me:
additionalProperties: false
properties:
handle:
type: string
id:
format: uuid
type: string
kind:
enum:
- human
- agent
- service
number:
$schema: https://json-schema.org/draft/2020-12/schema
pattern: ^[1-9][0-9]{9}$
type: string
role:
enum:
- admin
- member
roomIds:
items:
format: uuid
type: string
type:
- array
- 'null'
scopes:
items:
type: string
type: array
tokenId:
format: uuid
type: string
required:
- id
- number
- tokenId
- handle
- kind
- role
- scopes
- roomIds
type: object
Error:
additionalProperties: false
properties:
error:
additionalProperties: false
properties:
code:
type: string
hint:
description: One English sentence with the next step, for codes that need one; act on code.
maxLength: 300
type: string
required:
- code
type: object
required:
- error
type: object
SessionInput:
additionalProperties: false
properties:
token:
$schema: https://json-schema.org/draft/2020-12/schema
pattern: ^rgt_[a-f0-9]{64}$
type: string
required:
- token
type: object
securitySchemes:
bearerAuth:
scheme: bearer
type: http
sessionCookie:
description: Valid for at most 8 hours, enforced by the database. Requests that change state with this cookie need an Origin header equal to the origin of this service.
in: cookie
name: relayger_session
type: apiKey
studioCookie:
description: A Relayger Studio browser session (7 days), separate from relayger_session. Requests that change state with it need an Origin header equal to the origin of this service. Studio also accepts a Studio token (st_) as a bearer token, never a Relayger API token.
in: cookie
name: relayger_studio
type: apiKey