> ## Documentation Index
> Fetch the complete documentation index at: https://celoref.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Oblivious HTTP gateway

> Accepts an encapsulated request (RFC 9458 §4, HPKE X25519 / HKDF-SHA256 / AES-128-GCM) carrying a JSON request for any endpoint above, and returns the encapsulated response. Normally reached through an OHTTP relay, never directly by clients.



## OpenAPI

````yaml /openapi.json post /v1/ohttp
openapi: 3.1.0
info:
  title: Arkognito relayer API
  version: arkognito-relayer/1
  description: >-
    HTTP API of an Arkognito relayer and, when it runs with ISSUER=on, the
    blind-token issuer. All bodies are JSON unless noted. CORS is open. Relayers
    do not log request IPs or bodies.
  license:
    name: MIT
    url: https://github.com/soumyacodes007/Arkognito/blob/main/LICENSE
servers:
  - url: https://relay-1.example.com
    description: Your relayer
  - url: http://localhost:8787
    description: Local relayer
security: []
tags:
  - name: Relayer
    description: Submit records and follow their status.
  - name: Issuer
    description: Daily issuer keys and blind token issuance (relayers with ISSUER=on).
  - name: Operations
    description: Health and Oblivious HTTP.
paths:
  /v1/ohttp:
    post:
      tags:
        - Operations
      summary: Oblivious HTTP gateway
      description: >-
        Accepts an encapsulated request (RFC 9458 §4, HPKE X25519 / HKDF-SHA256
        / AES-128-GCM) carrying a JSON request for any endpoint above, and
        returns the encapsulated response. Normally reached through an OHTTP
        relay, never directly by clients.
      operationId: ohttpGateway
      requestBody:
        required: true
        content:
          message/ohttp-req:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Encapsulated response
          content:
            message/ohttp-res:
              schema:
                type: string
                format: binary
        '400':
          description: The request cannot be opened
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: OHTTP is off on this relayer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Body over 128 KB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.