Ranla Inbound API

Receive domains, inbound ingestion, and received email retrieval

GitHub OpenAPI

Operations 2

GET /received-emails List received emails #
GET /received-emails/{id} Retrieve a received email with attachment data #

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/ranla-ai:ranla-ai-inbound-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

ranla-ai-inbound-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ranla Inbound API
  version: 0.12.0
  description: 'Transactional email API for developers.

    Auth: `Authorization: Bearer rnl_…` or `stx_…` (or dashboard session cookie for integrations).

    Production base URL: https://api.ranla.ai'
servers:
- url: https://api.ranla.ai
  description: Production
tags:
- name: Inbound
  description: Receive domains, inbound ingestion, and received email retrieval
paths:
  /received-emails:
    get:
      operationId: listReceivedEmails
      summary: List received emails
      tags:
      - Inbound
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: cursor
        in: query
        schema:
          type: string
      - name: domain
        in: query
        schema:
          type: string
        description: Filter by receiving domain name
      responses:
        '200':
          description: Received email list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListReceivedEmailsResponse'
        '401':
          description: Missing or invalid API key / session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /received-emails/{id}:
    get:
      operationId: getReceivedEmail
      summary: Retrieve a received email with attachment data
      tags:
      - Inbound
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        description: Received email public id (`inb_…`)
        schema:
          type: string
      responses:
        '200':
          description: Received email detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReceivedEmailResponse'
        '401':
          description: Missing or invalid API key / session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Received email not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          properties:
            message:
              type: string
            code:
              $ref: '#/components/schemas/ErrorCode'
            upgrade_url:
              type: string
              description: Dashboard path to upgrade when code is plan_limit or domain_limit
            details:
              description: 'Optional structured details. For send blocks this may include `suppressed` (global suppression list) or `category_unsubscribed` plus `category` and `email_id` (category opt-out).

                '
    ReceivedEmail:
      type: object
      required:
      - id
      - domain_id
      - domain_name
      - status
      - rcpt_to
      - mail_from
      - from
      - to
      - cc
      - subject
      - spam_status
      - bounced
      - received_with_ssl
      - message_id
      - in_reply_to
      - references
      - attachment_count
      - attachments
      - text_body
      - html_body
      - auto_submitted
      - received_at
      - created_at
      properties:
        id:
          type: string
          description: Received email public id (`inb_…`)
        domain_id:
          type: string
        domain_name:
          type: string
        status:
          type: string
          enum:
          - received
        rcpt_to:
          type: string
          format: email
          description: Envelope recipient as received by Ranla.
        mail_from:
          type: string
          nullable: true
          description: SMTP envelope sender.
        from:
          type: string
        to:
          type: array
          items:
            type: string
            format: email
        cc:
          type: array
          items:
            type: string
            format: email
        subject:
          type: string
        spam_status:
          type: string
          nullable: true
        bounced:
          type: boolean
        received_with_ssl:
          type: boolean
          nullable: true
        message_id:
          type: string
          nullable: true
        in_reply_to:
          type: string
          nullable: true
        references:
          type: array
          items:
            type: string
        attachment_count:
          type: integer
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/ReceivedEmailAttachment'
        text_body:
          type: string
          nullable: true
        html_body:
          type: string
          nullable: true
        auto_submitted:
          type: string
          nullable: true
        received_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
    ReceivedEmailAttachmentMeta:
      type: object
      required:
      - filename
      - content_type
      - size
      properties:
        filename:
          type: string
        content_type:
          type: string
        size:
          type: integer
        content_id:
          type: string
          nullable: true
    ReceivedEmailResponse:
      type: object
      required:
      - received_email
      properties:
        received_email:
          $ref: '#/components/schemas/ReceivedEmail'
    ReceivedEmailAttachment:
      allOf:
      - $ref: '#/components/schemas/ReceivedEmailAttachmentMeta'
      - type: object
        properties:
          data:
            type: string
            format: byte
            description: Base64-encoded attachment content. Present on retrieve responses, omitted from list responses.
    ListReceivedEmailsResponse:
      type: object
      required:
      - received_emails
      - has_more
      - next_cursor
      properties:
        received_emails:
          type: array
          items:
            $ref: '#/components/schemas/ReceivedEmail'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
    ErrorCode:
      type: string
      description: Machine-readable error code
      enum:
      - validation_error
      - unauthorized
      - forbidden
      - not_found
      - conflict
      - plan_limit
      - domain_limit
      - idempotency_conflict
      - rate_limited
      - upstream_error
      - not_configured
      - internal_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ranla API key prefixed with `rnl_` or `stx_`