Rial Databases API

Create, update, inspect and synchronize tenant-scoped databases used by reusable verification templates. Callable with a dashboard session or secret API key.

GitHub OpenAPI

Operations 4

GET /v1/databases List your databases #
POST /v1/databases Create a database from rows #
PUT /v1/databases/{id} Replace a database's rows #
PATCH /v1/databases/{id} Rename a database #

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/rial-io:rial-io-databases-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

rial-io-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: rial Databases API
  version: 0.1.0
  description: 'Prove a photo is real. Base URL: https://api.rial.io'
  contact:
    name: rial-platform team
    url: https://github.com/Rial-ventures-Inc/rial-platform
  license:
    name: UNLICENSED — proprietary, internal use only
servers:
- url: https://api.rial.io
  description: Production
tags:
- name: Databases
  description: Create, update, inspect and synchronize tenant-scoped databases used by reusable verification templates. Callable with a dashboard session or secret API key.
paths:
  /v1/databases:
    get:
      tags:
      - Databases
      summary: List your databases
      description: Your databases, with their columns and rows.
      security:
      - bearerApiKey: []
      responses:
        '200':
          description: All saved tables for the tenant.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/OperatorDatabase'
                required:
                - items
              example:
                items:
                - id: db_01hz3k9m2q
                  name: Flota asegurada
                  source: csv
                  columns:
                  - poliza
                  - direccion
                  - vehiculo
                  rows:
                  - - POL-001
                    - Godoy Cruz 5218, Buenos Aires
                    - Toyota Hilux gris
                  created_at: '2026-08-01T00:00:00.000Z'
                  updated_at: '2026-08-01T00:00:00.000Z'
        '503':
          description: The store is unreachable — retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  cause:
                    type: string
                required:
                - error
              example:
                error: storage_unavailable
      operationId: getV1Databases
      x-operation-id-source: derived
    post:
      tags:
      - Databases
      summary: Create a database from rows
      description: 'Create a database from columns and rows. Limits: 5000 rows, 60 columns, 500 characters per cell, 1 MB.'
      security:
      - bearerApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  pattern: ^[A-Za-z0-9_-]{1,64}$
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                identifier_column:
                  type: string
                  minLength: 1
                  maxLength: 80
                source:
                  type: string
                  enum:
                  - csv
                  default: csv
                columns:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 80
                  minItems: 1
                  maxItems: 60
                rows:
                  type: array
                  items:
                    type: array
                    items:
                      type: string
                      maxLength: 4096
                  maxItems: 5000
              required:
              - name
              - columns
              - rows
              additionalProperties: false
            example:
              name: Flota asegurada
              columns:
              - poliza
              - direccion
              - vehiculo
              rows:
              - - POL-001
                - Godoy Cruz 5218, Buenos Aires
                - Toyota Hilux gris
      responses:
        '201':
          description: Table created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperatorDatabase'
              example:
                id: db_01hz3k9m2q
                name: Flota asegurada
                source: csv
                columns:
                - poliza
                - direccion
                - vehiculo
                rows:
                - - POL-001
                  - Godoy Cruz 5218, Buenos Aires
                  - Toyota Hilux gris
                created_at: '2026-08-01T00:00:00.000Z'
                updated_at: '2026-08-01T00:00:00.000Z'
        '400':
          description: Body failed validation (duplicate columns, misaligned rows, limits).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: The id already exists for this tenant.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                    - duplicate_id
                required:
                - error
              example:
                error: duplicate_id
        '503':
          description: The store is unreachable — retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  cause:
                    type: string
                required:
                - error
              example:
                error: storage_unavailable
      operationId: postV1Databases
      x-operation-id-source: derived
  /v1/databases/{id}:
    put:
      tags:
      - Databases
      summary: Replace a database's rows
      description: Replace name, columns and rows under the same id. Templates keep pointing at it; columns are matched by name.
      security:
      - bearerApiKey: []
      parameters:
      - schema:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          description: Database id — stable across re-uploads.
          example: db_01hz3k9m2q
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                identifier_column:
                  type: string
                  minLength: 1
                  maxLength: 80
                source:
                  type: string
                  enum:
                  - csv
                  default: csv
                columns:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 80
                  minItems: 1
                  maxItems: 60
                rows:
                  type: array
                  items:
                    type: array
                    items:
                      type: string
                      maxLength: 4096
                  maxItems: 5000
              required:
              - name
              - columns
              - rows
              additionalProperties: false
      responses:
        '200':
          description: Table replaced — same `id`, same `created_at`, fresh `updated_at`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperatorDatabase'
        '400':
          description: Body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No database with that id for the authenticated tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: Resource not found
        '503':
          description: The store is unreachable — retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  cause:
                    type: string
                required:
                - error
              example:
                error: storage_unavailable
      operationId: putV1DatabasesById
      x-operation-id-source: derived
    patch:
      tags:
      - Databases
      summary: Rename a database
      security:
      - bearerApiKey: []
      parameters:
      - schema:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,64}$
          description: Database id — stable across re-uploads.
          example: db_01hz3k9m2q
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
              required:
              - name
              additionalProperties: false
      responses:
        '200':
          description: Renamed database.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperatorDatabase'
        '400':
          description: Invalid name.
        '404':
          description: No database with that id for the authenticated tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: not_found
                  message: Resource not found
        '503':
          description: The store is unreachable — retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  cause:
                    type: string
                required:
                - error
              example:
                error: storage_unavailable
      description: Rename a database.
      operationId: patchV1DatabasesById
      x-operation-id-source: derived
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                  message:
                    type: string
                required:
                - path
                - message
          required:
          - code
          - message
      required:
      - error
      description: Uniform error envelope. `code` is the stable string SDKs branch on (`invalid_request`, `unauthorized`, `not_found`, `expired`, `step_full`, `unknown_step`, `steps_incomplete`, `already_finalized`, `too_many_requests`, `plan_limit_reached`, `insufficient_credits`, `monthly_verification_limit_reached`, `storage_unavailable`, `internal_error`, `report_not_ready`, `report_inconclusive`). `fields` is only present on `invalid_request` validation failures.
    OperatorDatabase:
      oneOf:
      - type: object
        properties:
          id:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,64}$
          name:
            type: string
            minLength: 1
            maxLength: 80
          identifier_column:
            type: string
          columns:
            type: array
            items:
              type: string
          rows:
            type: array
            items:
              type: array
              items:
                type: string
          created_at:
            type: string
            format: date-time
          updated_at:
            type: string
            format: date-time
          source:
            type: string
            enum:
            - csv
        required:
        - id
        - name
        - columns
        - rows
        - created_at
        - updated_at
        - source
        additionalProperties: false
      - type: object
        properties:
          id:
            type: string
            pattern: ^[A-Za-z0-9_-]{1,64}$
          name:
            type: string
            minLength: 1
            maxLength: 80
          identifier_column:
            type: string
          columns:
            type: array
            items:
              type: string
          rows:
            type: array
            items:
              type: array
              items:
                type: string
          created_at:
            type: string
            format: date-time
          updated_at:
            type: string
            format: date-time
          source:
            type: string
            enum:
            - provider
          source_details:
            type: object
            properties:
              provider:
                type: string
                enum:
                - google_sheets
              connection_id:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,64}$
              spreadsheet_id:
                type: string
                minLength: 1
              spreadsheet_title:
                type: string
              sheet_id:
                type: integer
              sheet_title:
                type: string
              source_url:
                type: string
                format: uri
            required:
            - provider
            - connection_id
            - spreadsheet_id
            - spreadsheet_title
            - sheet_id
            - sheet_title
            - source_url
            additionalProperties: false
          sync:
            type: object
            properties:
              status:
                type: string
                enum:
                - synced
                - syncing
                - error
                - reauthorization_required
              last_synced_at:
                type: string
                format: date-time
              last_attempt_at:
                type: string
                format: date-time
              next_sync_at:
                type: string
                format: date-time
              error_code:
                type: string
                enum:
                - source_not_found
                - tab_not_found
                - invalid_table
                - quota
                - upstream
            required:
            - status
            - last_synced_at
            - last_attempt_at
            additionalProperties: false
        required:
        - id
        - name
        - columns
        - rows
        - created_at
        - updated_at
        - source
        - source_details
        - sync
        additionalProperties: false
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: rk_secret_<key>
      description: 'Secret API key, created in the dashboard under Settings → API. Send it as `Authorization: Bearer rk_secret_…` from your server only. Publishable keys (`pk_live_…`) are for the native SDKs and reach the capture endpoints alone. An unknown key returns 401.'