ReplyLayer Legal Holds API

The legal-holds API from ReplyLayer — 3 operation(s) for legal-holds.

GitHub OpenAPI

Operations 4

GET /v1/legal-holds List legal holds #
POST /v1/legal-holds Create a legal hold (Pro+) #
GET /v1/legal-holds/{id} Get a legal hold #
POST /v1/legal-holds/{id}/release Release a legal hold #

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/replylayer-ai:replylayer-ai-legal-holds-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. 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 Specification

replylayer-ai-legal-holds-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The ReplyLayer REST API for AI agents — send, receive, read, and reply to email with built-in security scanning. Authenticate with an API key (`Authorization: Bearer rly_live_.`). This is the customer contract only; operator/admin endpoints and the session-cookie dashboard surface are not part of this spec.'
  title: ReplyLayer Legal Holds API
  version: 1.0.0
servers:
- description: Production
  url: https://api.replylayer.ai
security:
- BearerApiKey: []
tags:
- name: legal-holds
paths:
  /v1/legal-holds:
    get:
      operationId: getV1LegalHolds
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  legal_holds:
                    items:
                      properties:
                        applied_at:
                          format: date-time
                          type: string
                        applied_by_type:
                          enum:
                          - admin
                          - customer
                          - system
                          type: string
                        case_reference:
                          type: string
                        id:
                          format: uuid
                          type: string
                        mailbox_id:
                          format: uuid
                          type:
                          - string
                          - 'null'
                        reason:
                          type: string
                        release_reason:
                          type:
                          - string
                          - 'null'
                        released_at:
                          format: date-time
                          type:
                          - string
                          - 'null'
                        released_by_type:
                          anyOf:
                          - enum:
                            - admin
                            - customer
                            - system
                            type: string
                          - {}
                        scope:
                          enum:
                          - account
                          - mailbox
                          type: string
                      required:
                      - id
                      - scope
                      - case_reference
                      - reason
                      - applied_at
                      - applied_by_type
                      type: object
                    type: array
                required:
                - legal_holds
                type: object
          description: Success
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: List legal holds
      tags:
      - legal-holds
    post:
      operationId: postV1LegalHolds
      requestBody:
        content:
          application/json:
            schema:
              properties:
                case_reference:
                  maxLength: 200
                  type: string
                mailbox_id:
                  format: uuid
                  type: string
                reason:
                  maxLength: 2000
                  minLength: 1
                  type: string
                scope:
                  enum:
                  - account
                  - mailbox
                  type: string
              required:
              - scope
              - reason
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  applied_at:
                    format: date-time
                    type: string
                  applied_by_type:
                    enum:
                    - admin
                    - customer
                    - system
                    type: string
                  case_reference:
                    type: string
                  id:
                    format: uuid
                    type: string
                  mailbox_id:
                    format: uuid
                    type:
                    - string
                    - 'null'
                  reason:
                    type: string
                  release_reason:
                    type:
                    - string
                    - 'null'
                  released_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  released_by_type:
                    anyOf:
                    - enum:
                      - admin
                      - customer
                      - system
                      type: string
                    - {}
                  scope:
                    enum:
                    - account
                    - mailbox
                    type: string
                required:
                - id
                - scope
                - case_reference
                - reason
                - applied_at
                - applied_by_type
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Create a legal hold (Pro+)
      tags:
      - legal-holds
  /v1/legal-holds/{id}:
    get:
      operationId: getV1LegalHoldsById
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  applied_at:
                    format: date-time
                    type: string
                  applied_by_type:
                    enum:
                    - admin
                    - customer
                    - system
                    type: string
                  case_reference:
                    type: string
                  id:
                    format: uuid
                    type: string
                  mailbox_id:
                    format: uuid
                    type:
                    - string
                    - 'null'
                  reason:
                    type: string
                  release_reason:
                    type:
                    - string
                    - 'null'
                  released_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  released_by_type:
                    anyOf:
                    - enum:
                      - admin
                      - customer
                      - system
                      type: string
                    - {}
                  scope:
                    enum:
                    - account
                    - mailbox
                    type: string
                required:
                - id
                - scope
                - case_reference
                - reason
                - applied_at
                - applied_by_type
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden (code: INSUFFICIENT_SCOPE, EMAIL_NOT_VERIFIED)'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Get a legal hold
      tags:
      - legal-holds
  /v1/legal-holds/{id}/release:
    post:
      operationId: postV1LegalHoldsByIdRelease
      parameters:
      - in: path
        name: id
        required: true
        schema:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                release_reason:
                  maxLength: 2000
                  minLength: 1
                  type: string
              required:
              - release_reason
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  applied_at:
                    format: date-time
                    type: string
                  applied_by_type:
                    enum:
                    - admin
                    - customer
                    - system
                    type: string
                  case_reference:
                    type: string
                  id:
                    format: uuid
                    type: string
                  mailbox_id:
                    format: uuid
                    type:
                    - string
                    - 'null'
                  reason:
                    type: string
                  release_reason:
                    type:
                    - string
                    - 'null'
                  released_at:
                    format: date-time
                    type:
                    - string
                    - 'null'
                  released_by_type:
                    anyOf:
                    - enum:
                      - admin
                      - customer
                      - system
                      type: string
                    - {}
                  scope:
                    enum:
                    - account
                    - mailbox
                    type: string
                required:
                - id
                - scope
                - case_reference
                - reason
                - applied_at
                - applied_by_type
                type: object
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Validation error (code: VALIDATION_ERROR)'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden (code: INSUFFICIENT_SCOPE, EMAIL_NOT_VERIFIED)'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Rate limited (code: RATE_LIMITED)'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Internal error (code: INTERNAL_ERROR)'
      summary: Release a legal hold
      tags:
      - legal-holds
components:
  schemas:
    Error:
      description: Standard error envelope. `code` is a stable machine-readable string.
      properties:
        code:
          type: string
        details:
          additionalProperties: true
          type: object
        error:
          type: string
      required:
      - error
      - code
      type: object
  securitySchemes:
    BearerApiKey:
      description: 'ReplyLayer API key: `Authorization: Bearer rly_live_<public_id>.<secret>`.'
      scheme: bearer
      type: http