Rizamo Profiles API

The brands or clients a team posts for, each with its own accounts, posting queue and time zone.

GitHub OpenAPI

Operations 6

GET /profiles List profiles #
POST /profiles Create a profile #
PATCH /profiles/{id} Update a profile #
DELETE /profiles/{id} Delete a profile #
GET /profiles/{id}/queue Get a profile's queue #
PUT /profiles/{id}/queue Set a profile's queue #

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/rizamo-com:rizamo-com-profiles-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

rizamo-com-profiles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rizamo Profiles API
  version: '1'
  description: Publish, schedule and measure social posts across connected accounts, answer comments and messages, and receive events.
  contact:
    name: Rizamo
    email: hi@rizamo.com
    url: https://docs.rizamo.com
servers:
- url: https://api.rizamo.com/v1
security:
- apiKey: []
tags:
- name: Profiles
  description: The brands or clients a team posts for, each with its own accounts, posting queue and time zone.
paths:
  /profiles:
    get:
      operationId: profiles.list
      summary: List profiles
      description: The brands or clients the team posts for, each with its colour and time zone. A key or person limited to some profiles gets those only.
      tags:
      - Profiles
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Profile'
                required:
                - items
              example:
                items:
                - id: prof_01m40k9k80fxd8cvng8derm7g9
                  name: Café Lumen
                  color: '#FFB547'
                  initials: CL
                  timeZone: Europe/Lisbon
                - id: prof_01m41bamm0f3a8mr2eek4wdq39
                  name: Bloom Studio
                  color: '#FF6B9A'
                  initials: BS
                  timeZone: Europe/Lisbon
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    post:
      operationId: profiles.create
      summary: Create a profile
      description: 'A brand or client of its own, with no accounts yet: connect them with `Get a link to connect an account`, or in the web app. Each profile''s name is its own in the team (409 otherwise).'
      tags:
      - Profiles
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                  description: The brand or client's name, up to 60 characters.
                color:
                  type: string
                  pattern: ^#[0-9a-f]{6}$
                  description: 'Hex colour for the profile''s tile, such as #4FA3FF; one is picked when left out.'
                timeZone:
                  type: string
                  maxLength: 64
                  description: An IANA time zone, such as Europe/Lisbon.
                  examples:
                  - Europe/Lisbon
                  default: UTC
              required:
              - name
            example:
              name: Bloom Studio
              timeZone: Europe/Lisbon
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
              example:
                id: prof_01m41bamm0f3a8mr2eek4wdq39
                name: Bloom Studio
                color: '#FF6B9A'
                initials: BS
                timeZone: Europe/Lisbon
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
  /profiles/{id}:
    patch:
      operationId: profiles.update
      summary: Update a profile
      description: 'Its name, colour or time zone; what is left out stays as it is. A new time zone reads posting times and local `scheduledAt` from then on: posts already scheduled keep their time.'
      tags:
      - Profiles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 100
          description: The profile's id (`prof_`).
        description: The profile's id (`prof_`).
        example: prof_01m40k9k80fxd8cvng8derm7g9
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                  description: A new name, up to 60 characters, not another profile's.
                color:
                  type: string
                  pattern: ^#[0-9a-f]{6}$
                  description: 'Hex colour for the profile''s tile, such as #4FA3FF.'
                timeZone:
                  type: string
                  maxLength: 64
                  description: An IANA time zone, such as Europe/Lisbon.
                  examples:
                  - Europe/Lisbon
            example:
              color: '#3CCF96'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
              example:
                id: prof_01m40k9k80fxd8cvng8derm7g9
                name: Café Lumen
                color: '#3CCF96'
                initials: CL
                timeZone: Europe/Lisbon
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    delete:
      operationId: profiles.delete
      summary: Delete a profile
      description: 'For good: what is in it cannot be restored. Its posts go, deleted ones included, with their history and preview links (posts already published stay on the networks), and so do its posting times, its upload requests and connect links, its other events, and its media that no post of another profile uses. Its short links stay and keep working, with no profile. People and invitations limited to some profiles, API keys, agents and webhook endpoints lose it from their profiles: a key or agent that reached only this profile is revoked, and an endpoint that took only its events is disabled (`disabledReason` `profile_deleted`). Refused (409) while it has accounts (move each to another profile, or remove it, first), when it is the team''s only profile, while one of its posts is going out, and while a person or an open invitation reaches no other profile, naming them. Only an owner deletes a profile, signed in as themselves within the last 15 minutes (with their session, as the web app does), or an API key an owner let remove accounts and delete profiles when making it (Developers in the web app). Other API keys and agents are refused (403), and a key reaches only its own profiles.'
      tags:
      - Profiles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 100
          description: The profile's id (`prof_`).
        description: The profile's id (`prof_`).
        example: prof_01m41bamm0f3a8mr2eek4wdq39
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    maxLength: 100
                required:
                - id
              example:
                id: prof_01m41bamm0f3a8mr2eek4wdq39
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
  /profiles/{id}/queue:
    get:
      operationId: profiles.queue
      summary: Get a profile's queue
      description: Its posting times, read in its time zone; the next `count` times free for at least one of its accounts, with which ones (none of them has a post at that minute, scheduled or queued, and none would pass its network's daily cap); and its queued posts still to go out.
      tags:
      - Profiles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 100
          description: The profile's id (`prof_`).
        description: The profile's id (`prof_`).
        example: prof_01m40k9k80fxd8cvng8derm7g9
      - name: count
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
          description: How many free times to list.
        allowEmptyValue: true
        allowReserved: true
        description: How many free times to list.
        example: 3
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Queue'
              example:
                profileId: prof_01m40k9k80fxd8cvng8derm7g9
                timeZone: Europe/Lisbon
                slots:
                - weekday: mon
                  time: 09:00
                - weekday: wed
                  time: '12:30'
                - weekday: fri
                  time: '18:00'
                next:
                - at: '2026-11-09T09:00:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                  - acc_01m44bet40enpr62nh6w01e67r
                - at: '2026-11-11T12:30:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                  - acc_01m44bet40enpr62nh6w01e67r
                - at: '2026-11-13T18:00:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                posts:
                - id: post_01m483m100e3pbp1zd7sm1b7hf
                  scheduledAt: '2026-11-13T18:00:00.000Z'
                  accountIds:
                  - acc_01m44bet40enpr62nh6w01e67r
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    put:
      operationId: profiles.setQueue
      summary: Set a profile's queue
      description: Replaces the profile's posting times with these, the whole week in one call; an empty list empties it. At most 24 a day, each once. Each is a local time in the profile's time zone, the same clock time all year. Posts already queued keep their times; only new ones take the new week.
      tags:
      - Profiles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 100
          description: The profile's id (`prof_`).
        description: The profile's id (`prof_`).
        example: prof_01m40k9k80fxd8cvng8derm7g9
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                slots:
                  type: array
                  maxItems: 168
                  items:
                    $ref: '#/components/schemas/QueueSlot'
                  description: The whole week, each time a weekday and a local time, at most 24 a day. An empty list empties the queue.
              required:
              - slots
            example:
              slots:
              - weekday: mon
                time: 09:00
              - weekday: wed
                time: '12:30'
              - weekday: fri
                time: '18:00'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Queue'
              example:
                profileId: prof_01m40k9k80fxd8cvng8derm7g9
                timeZone: Europe/Lisbon
                slots:
                - weekday: mon
                  time: 09:00
                - weekday: wed
                  time: '12:30'
                - weekday: fri
                  time: '18:00'
                next:
                - at: '2026-11-09T09:00:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                  - acc_01m44bet40enpr62nh6w01e67r
                - at: '2026-11-11T12:30:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                  - acc_01m44bet40enpr62nh6w01e67r
                - at: '2026-11-13T18:00:00.000Z'
                  accountIds:
                  - acc_01m423bp00fz39kp5pc7m42tsw
                  - acc_01m42vcqc0e15apwrdjth3v2q5
                posts:
                - id: post_01m483m100e3pbp1zd7sm1b7hf
                  scheduledAt: '2026-11-13T18:00:00.000Z'
                  accountIds:
                  - acc_01m44bet40enpr62nh6w01e67r
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    Queue:
      type: object
      properties:
        profileId:
          type: string
        timeZone:
          type: string
          description: The profile's time zone, which the slots are read in.
        slots:
          type: array
          items:
            $ref: '#/components/schemas/QueueSlot'
          description: Its posting times, Monday first, each day's in order.
        next:
          type: array
          items:
            type: object
            properties:
              at:
                type: string
                format: date-time
              accountIds:
                type: array
                items:
                  type: string
                description: 'The profile''s accounts free then: none of them has a post at that minute, and none would pass its network''s daily cap.'
            required:
            - at
            - accountIds
          description: 'The next posting times free for at least one of the profile''s accounts, to show what is open. Never copy one into `scheduledAt` to take it: two callers would take the same one. Create the post with `queue: true` instead.'
        posts:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              scheduledAt:
                type: string
                format: date-time
              accountIds:
                type: array
                items:
                  type: string
            required:
            - id
            - scheduledAt
            - accountIds
          description: 'The queued posts still to go out, soonest first, the next 100 at most, with their accounts (`Get a post` has the rest). Left out for a key or agent without `posts:read`: the queue''s own read scope is `accounts:read`.'
      required:
      - profileId
      - timeZone
      - slots
      - next
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              enum:
              - invalid_request
              - unauthorized
              - forbidden
              - not_found
              - method_not_allowed
              - conflict
              - queue_empty
              - queue_full
              - idempotency_key_in_use
              - payload_too_large
              - unsupported_media_type
              - capability_missing
              - idempotency_key_reused
              - rate_limited
              - internal
              - not_implemented
              - bad_gateway
              - timeout
              type: string
              description: 'What went wrong, for your code to branch on; the Errors page lists each code with its status. Rizamo may add codes within v1: treat one you do not know by its HTTP status.'
            message:
              type: string
              description: 'What went wrong and what to change, for a person: it names the field at fault, and quotes a network that refused. Show it, never parse it: its words can change.'
          required:
          - code
          - message
        requestId:
          type: string
          description: This request's id, also in the `Request-Id` header. Send it to support when something keeps failing.
      required:
      - error
      - requestId
      description: Every error the API answers, whatever its status.
    Profile:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        color:
          type: string
        initials:
          type: string
        timeZone:
          type: string
          description: 'The profile''s IANA time zone: a post''s `scheduledAt` without an offset is read in it.'
      required:
      - id
      - name
      - color
      - initials
      - timeZone
    QueueSlot:
      type: object
      properties:
        weekday:
          enum:
          - mon
          - tue
          - wed
          - thu
          - fri
          - sat
          - sun
          type: string
        time:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: 'A local time, HH:mm, in the profile''s time zone: the same clock time all year, across summer time.'
      required:
      - weekday
      - time
  responses:
    PayloadTooLarge:
      description: '`payload_too_large`: The body is over 1 MB: files go up through the upload links of `POST /v1/media`.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            payload_too_large:
              summary: payload_too_large
              value:
                error:
                  code: payload_too_large
                  message: A request to the API may have a body of up to 1 MB. Files go up through the upload links of Add media.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    NotFound:
      description: '`not_found`: No such object, or it is outside your team or the profiles your key reaches.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: not_found
              value:
                error:
                  code: not_found
                  message: Post post_01m47bjzm0edmtk7w6gp7br39v not found.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    Conflict:
      description: '`conflict`: The object''s state does not allow it now, such as an account that needs a new login. `queue_empty`: A post with `queue: true` whose profile has no posting times: set them, or give a `scheduledAt`. `queue_full`: No posting time free for the post''s accounts in the next 90 days: add times, or give a `scheduledAt`. `idempotency_key_in_use`: A request with this `Idempotency-Key` is still running: try again in a moment.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            conflict:
              summary: conflict
              value:
                error:
                  code: conflict
                  message: This post is deleted. Restore it first.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
            queue_empty:
              summary: queue_empty
              value:
                error:
                  code: queue_empty
                  message: 'Café Lumen has no posting times in its queue: set them first, or give the post a scheduledAt.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
            queue_full:
              summary: queue_full
              value:
                error:
                  code: queue_full
                  message: 'Café Lumen''s queue has no free posting time for these accounts in the next 90 days: add times, or give the post a scheduledAt.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
            idempotency_key_in_use:
              summary: idempotency_key_in_use
              value:
                error:
                  code: idempotency_key_in_use
                  message: A request with this Idempotency-Key is still running. Try again in a moment.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    TooManyRequests:
      description: '`rate_limited`: Over one of Rizamo''s limits, or a network asked Rizamo to slow down: wait for `Retry-After` seconds, or as long as the message says.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            rate_limited:
              summary: rate_limited
              value:
                error:
                  code: rate_limited
                  message: 'A team makes up to 120 writes a minute (calls that create, change or delete something) to the API and MCP server: try again in a minute.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    InternalServerError:
      description: '`internal`: Our side failed: retry, and send the `requestId` if it keeps failing.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            internal:
              summary: internal
              value:
                error:
                  code: internal
                  message: Something went wrong on our side.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    BadRequest:
      description: '`invalid_request`: A field is missing or wrong, or the request cannot be done as asked: the message names the field or says what to change.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid_request:
              summary: invalid_request
              value:
                error:
                  code: invalid_request
                  message: 'targets.0.accountId: Invalid input: expected string, received undefined'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    UnprocessableEntity:
      description: '`capability_missing`: The account cannot do this: see its `capabilities`. `idempotency_key_reused`: This `Idempotency-Key` was used for a different request in the last 24 hours: send a new key.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            capability_missing:
              summary: capability_missing
              value:
                error:
                  code: capability_missing
                  message: '@cafelumen on TikTok cannot publish posts.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
            idempotency_key_reused:
              summary: idempotency_key_reused
              value:
                error:
                  code: idempotency_key_reused
                  message: This Idempotency-Key was used for a different request in the last 24 hours. Send a new key with each new request.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    Forbidden:
      description: '`forbidden`: The caller may not do this: the key or agent lacks the scope (the message names it), or the action needs another role or a fresh sign-in.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            forbidden:
              summary: forbidden
              value:
                error:
                  code: forbidden
                  message: This API key does not have the posts:write scope.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    UnsupportedMediaType:
      description: '`unsupported_media_type`: The body is not JSON: send it with `Content-Type: application/json`.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unsupported_media_type:
              summary: unsupported_media_type
              value:
                error:
                  code: unsupported_media_type
                  message: 'The API takes JSON bodies only: send Content-Type: application/json.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    Unauthorized:
      description: '`unauthorized`: No API key or sign-in, or the key does not work: it was deleted, or it expired.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
        WWW-Authenticate:
          $ref: '#/components/headers/WWWAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthorized:
              summary: unauthorized
              value:
                error:
                  code: unauthorized
                  message: 'This API key does not work: it was deleted, or it expired.'
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    ServiceUnavailable:
      description: '`timeout`: The request took too long to work out, most often a report: try again in a moment, or ask a report for a shorter period or one profile.'
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            timeout:
              summary: timeout
              value:
                error:
                  code: timeout
                  message: This took too long to work out. Ask for a shorter period or one profile, or try again in a moment.
                requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: '1 to 255 printable characters, new for each request (a UUID); the body up to 1 MB. For 24 hours a repeat with the same key, path and body gets the first answer, with `Idempotent-Replayed: true`, instead of running again; 5xx, 409 and 429 answers are not kept. Errors, Retries, has the rest.'
      schema:
        type: string
        minLength: 1
        maxLength: 255
      example: 4b9e7c1a-2f3d-4e8a-9c6b-1d2e3f4a5b6c
  headers:
    RetryAfter:
      description: Seconds to wait before trying again, when the limit reached is one of Rizamo's own per minute.
      schema:
        type: integer
        example: 60
    WWWAuthenticate:
      description: 'How to authenticate: `Bearer realm="Rizamo"`, with `error="invalid_token"` for a key that does not work.'
      schema:
        type: string
    RequestId:
      description: 'The request''s id, on every answer: send it to support when something keeps failing.'
      schema:
        type: string
        example: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
    IdempotentReplayed:
      description: '`true` when this is the first answer to a request with the same `Idempotency-Key`, sent again within 24 hours instead of running it twice.'
      schema:
        type: string
        enum:
        - 'true'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from the web app, under Developers. It starts with `rz_live_`.
externalDocs:
  description: Guides, errors, limits and the changelog
  url: https://docs.rizamo.com