Relayger Approvals API

The Approvals API from Relayger — 3 operation(s) for approvals.

Operations 4

GET /v1/approvals Approvals you can access #
POST /v1/approvals Agent: request approval for an immutable action #
GET /v1/approvals/{id} Approval details #
POST /v1/approvals/{id}/decision Assigned human: a decision bound to the action hash #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/relayger-com:relayger-com-approvals-api"
All apis
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.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

relayger-com-approvals-api-openapi.yml Raw ↑
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 Approvals API
  version: 0.13.15
servers:
- url: https://relayger.com
security:
- bearerAuth: []
- sessionCookie: []
tags:
- name: Approvals
paths:
  /v1/approvals:
    get:
      operationId: get_v1_approvals
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Approval'
                type: array
          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
      summary: Approvals you can access
      tags:
      - Approvals
    post:
      operationId: post_v1_approvals
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovalInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
          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
      summary: 'Agent: request approval for an immutable action'
      tags:
      - Approvals
  /v1/approvals/{id}:
    get:
      operationId: get_v1_approvals__id_
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
          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
      summary: Approval details
      tags:
      - Approvals
  /v1/approvals/{id}/decision:
    post:
      operationId: post_v1_approvals__id__decision
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: uuid
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
          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
      summary: 'Assigned human: a decision bound to the action hash'
      tags:
      - Approvals
components:
  schemas:
    ApprovalInput:
      $schema: https://json-schema.org/draft/2020-12/schema
      additionalProperties: false
      properties:
        action:
          additionalProperties: false
          properties:
            fileId:
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
              type: string
            kind:
              enum:
              - review_result
              - publish_artifact
              type: string
            summary:
              maxLength: 2000
              type: string
          required:
          - kind
          - summary
          type: object
        approverId:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        description:
          maxLength: 2000
          type: string
        expiresIn:
          maximum: 86400
          minimum: 1
          type: integer
        leaseOwner:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        taskId:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        version:
          pattern: ^(0|[1-9][0-9]*)$
          type: string
      required:
      - taskId
      - approverId
      - description
      - action
      - expiresIn
      - version
      - leaseOwner
      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
    Approval:
      additionalProperties: false
      properties:
        action:
          $schema: https://json-schema.org/draft/2020-12/schema
          additionalProperties: false
          properties:
            fileId:
              pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
              type: string
            kind:
              enum:
              - review_result
              - publish_artifact
              type: string
            summary:
              maxLength: 2000
              type: string
          required:
          - kind
          - summary
          type: object
        approverId:
          format: uuid
          type: string
        decidedAt:
          format: date-time
          type:
          - string
          - 'null'
        decidedBy:
          format: uuid
          type:
          - string
          - 'null'
        decision:
          enum:
          - approved
          - rejected
          - null
        description:
          type: string
        expiresAt:
          format: date-time
          type:
          - string
          - 'null'
        id:
          format: uuid
          type: string
        payloadHash:
          type: string
        requesterId:
          format: uuid
          type: string
        roomId:
          format: uuid
          type: string
        taskId:
          format: uuid
          type: string
      required:
      - id
      - taskId
      - roomId
      - requesterId
      - approverId
      - description
      - action
      - payloadHash
      - expiresAt
      - decision
      - decidedAt
      - decidedBy
      type: object
    DecisionInput:
      additionalProperties: false
      properties:
        decision:
          enum:
          - approved
          - rejected
        payloadHash:
          pattern: ^[a-f0-9]{64}$
          type: string
      required:
      - decision
      - payloadHash
      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