Ranla Contact Lists API

Named buckets of contacts, maintained by hand or by API

GitHub OpenAPI

Operations 8

GET /contact-lists List contact lists #
POST /contact-lists Create a contact list #
GET /contact-lists/{id} Retrieve a contact list #
PATCH /contact-lists/{id} Update a contact list #
DELETE /contact-lists/{id} Delete a contact list #
GET /contact-lists/{id}/contacts List the contacts on a list #
POST /contact-lists/{id}/contacts Add contacts to a list #
DELETE /contact-lists/{id}/contacts Remove contacts from a list #

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-contactlists-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-contactlists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ranla Contact Lists 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: ContactLists
  description: Named buckets of contacts, maintained by hand or by API
paths:
  /contact-lists:
    get:
      operationId: listContactLists
      summary: List contact lists
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Contact lists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactListsResponse'
        '400':
          description: Invalid cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    post:
      operationId: createContactList
      summary: Create a contact list
      description: The `key` is a slug derived from the name and is stable once created.
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContactListRequest'
      responses:
        '200':
          description: Contact list created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactListResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: A list with that name already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /contact-lists/{id}:
    get:
      operationId: getContactList
      summary: Retrieve a contact list
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      responses:
        '200':
          description: Contact list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactListResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    patch:
      operationId: updateContactList
      summary: Update a contact list
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactListRequest'
      responses:
        '200':
          description: Contact list updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactListResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: A list with that name already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: deleteContactList
      summary: Delete a contact list
      description: Deletes the list and its memberships. Contacts themselves are untouched.
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      responses:
        '200':
          description: Contact list deleted
          content:
            application/json:
              schema:
                type: object
                required:
                - ok
                properties:
                  ok:
                    type: boolean
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /contact-lists/{id}/contacts:
    get:
      operationId: listContactListMembers
      summary: List the contacts on a list
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Contacts on the list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactsResponse'
        '400':
          description: Invalid cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    post:
      operationId: addContactsToList
      summary: Add contacts to a list
      description: Identify contacts by `contact_ids`, by `emails`, or both. Addresses we have never seen come back in `not_found`.
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactListMembershipRequest'
      responses:
        '200':
          description: Membership updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddContactListMembersResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: removeContactsFromList
      summary: Remove contacts from a list
      tags:
      - ContactLists
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: List id or key
      - name: contact_ids
        in: query
        schema:
          type: string
        description: Comma-separated contact ids, for clients that cannot send a DELETE body
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactListMembershipRequest'
      responses:
        '200':
          description: Membership updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveContactListMembersResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Contact list not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ContactStatus:
      type: string
      enum:
      - subscribed
      - unsubscribed
      - bounced
      - complained
      description: 'Derived on read. A contact who is suppressed, or who has opted out of

        newsletter mail, always reads back as `unsubscribed` — there is one

        source of truth for consent and this reflects it.

        '
    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).

                '
    AddContactListMembersResponse:
      type: object
      required:
      - added
      - contact_count
      - not_found
      properties:
        added:
          type: integer
        contact_count:
          type: integer
          description: Size of the list after the change
        not_found:
          type: array
          items:
            type: string
          description: Addresses that do not match a contact on this account
    UpdateContactListRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
    ContactListResponse:
      type: object
      required:
      - list
      properties:
        list:
          $ref: '#/components/schemas/ContactList'
    CreateContactListRequest:
      type: object
      required:
      - name
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
    ContactSource:
      type: string
      enum:
      - api
      - import
      - dashboard
      - agent
      - on_site
      description: 'Where the contact was first created. `on_site` means an on-site message on your

        website captured the address.

        '
    ContactListMembershipRequest:
      type: object
      properties:
        contact_ids:
          type: array
          items:
            type: string
        emails:
          type: array
          items:
            type: string
            format: email
    ContactList:
      type: object
      required:
      - id
      - name
      - key
      - description
      - contact_count
      - created_at
      - updated_at
      properties:
        id:
          type: string
        name:
          type: string
        key:
          type: string
          description: URL-safe slug derived from the name, stable once created
        description:
          type: string
          nullable: true
        contact_count:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    RemoveContactListMembersResponse:
      type: object
      required:
      - removed
      - contact_count
      - not_found
      properties:
        removed:
          type: integer
        contact_count:
          type: integer
          description: Size of the list after the change
        not_found:
          type: array
          items:
            type: string
    Contact:
      type: object
      required:
      - id
      - email
      - external_id
      - first_name
      - last_name
      - attributes
      - status
      - source
      - last_engaged_at
      - created_at
      - updated_at
      properties:
        id:
          type: string
        email:
          type: string
          format: email
        external_id:
          type: string
          nullable: true
          description: Your own id for this person, for joins back into your product
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
        attributes:
          type: object
          additionalProperties: true
          description: Flat, scalar-valued product state you sync up. Segments filter on it.
        status:
          $ref: '#/components/schemas/ContactStatus'
        source:
          $ref: '#/components/schemas/ContactSource'
        last_engaged_at:
          type: string
          format: date-time
          nullable: true
          description: Last open or click across any campaign
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ListContactListsResponse:
      type: object
      required:
      - data
      - has_more
      - next_cursor
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ContactList'
        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
    ListContactsResponse:
      type: object
      required:
      - data
      - has_more
      - next_cursor
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ranla API key prefixed with `rnl_` or `stx_`