Mensageiro Presets API

Saved presets: a model, fallbacks, params, a system prompt and tools under one name, called as `model: "@preset/"`.

GitHub OpenAPI

Operations 5

GET /v1/presets List the organization's presets #
POST /v1/presets Create a preset #
GET /v1/presets/{name} One preset #
PUT /v1/presets/{name} Create or replace a preset #
DELETE /v1/presets/{name} Delete a preset #

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/mensageiro-ai:mensageiro-ai-presets-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

mensageiro-ai-presets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mensageiro Presets API
  version: '2026-10-19'
  summary: One key and one base URL for Claude, GPT, Gemini and the open-weight models in the OpenAI, Anthropic and Gemini wire formats, plus image, video, speech and 3D models.
  description: 'Send the request your SDK already sends, to `https://api.mensageiro.ai/v1` instead of the developer''s URL. The proxy changes only the credential, `stream_options.include_usage` on OpenAI-format streams that did not set it, a `top_k` of 0 or less (off) which it leaves out, and the model id when the request named one of your aliases. Authentication: `Authorization: Bearer sk-msg-live-...`, or the header your SDK sends (`x-api-key` for the Anthropic SDK, `x-goog-api-key` for the Gemini SDK). Exactly one key per request, never in the URL. Model ids are enumerated by GET /v1/catalog (chat, embedding, moderation, rerank and transcription models; each entry''s `type` and `endpoints` say which route takes it) and GET /v1/catalog/media (media), with prices, and by GET /v1/models for what a given key may call. They are not listed in this document. Errors: every error is a JSON object whose `error` carries a `code` and a `message`. OpenAI-format routes and every route outside the chat formats add `type` and `param` (the `Error` schema); the Anthropic format answers in Anthropic''s error shape with the code appended to the message, and the Gemini format in Google''s. Every error carries `x-uplink-request-id`. Fallbacks: `models: ["a", "b"]` in an OpenAI- or Anthropic-format body names up to 5 models tried in order after `model` (or alone, its first entry being the model). The next model is tried only once every route of the one before has failed before a byte reached you, so a stream falls back only before its first byte. The answer''s `model` and `x-uplink-model` name the model that answered, which is the one billed, at its own price. Every entry obeys the key''s allowlist. A key''s `fallback_models` is used when a request names no `models`. Presets: `model: "@preset/"` (also `@`, `@preset/`, or `preset: "@preset/"` beside a model) runs one of your organization''s presets, managed at /v1/presets: its model, fallbacks, default params, system prompt (prepended to yours, or replacing it) and tools. Your request''s own fields win; your tools replace the preset''s tools of the same name and the rest are appended. Every response carries `x-uplink-request-id`; quote it when you write in. Chat responses add `x-uplink-model` and, when they apply, the headers under `components.headers`. Paying per request without a key (x402): POST /v1/chat/completions, /v1/messages, /v1/responses, /v1/embeddings or /v1/search with no credential header and `X-PAYMENT: new` answers 402 with an x402 PaymentRequired object (protocol version 2) as the body and base64 in the PAYMENT-REQUIRED header. `accepts[0]` is scheme `checkout`: `payTo` is a one-time crypto checkout link (USDT, USDC, BTC, ETH, SOL and 13 more), `amount` the dollars to pay (the hold a key would be held for this request, rounded up to whole dollars, at least $1; the hold itself is `extra.request_usd`: the input at 4 bytes a token plus `max_tokens`, 16,384 when the request sets none, at the model''s catalog price, or one search''s fee on /v1/search), `extra.payment_id` the id of the payment. Pay there, then send the same request again with `X-PAYMENT: ` (or PAYMENT-SIGNATURE carrying a base64 x402 PaymentPayload whose `payload.payment_id` is the id). A request with no credential and no X-PAYMENT or PAYMENT-SIGNATURE header is not paying per request: it answers 401 invalid_api_key. Until the payment confirms the answer is 402 x402_payment_pending with the same quote; once it has, the request runs with the payment id as its end user and its own rate limit, and the answer adds PAYMENT-RESPONSE (base64 `{ success, transaction, network, payer }`) beside x-uplink-charge and the signed receipt. Every request sent with the id spends the payment down at the catalog price, and what the last one leaves stays with the service; a request the remainder cannot hold is a 402 x402_payment_spent with a fresh checkout. `stream` must be false. The model must be one id from GET /v1/catalog (no aliases, presets or `auto`).'
  contact:
    url: https://mensageiro.ai/contact
    email: contato@mensageiro.ai
servers:
- url: https://api.mensageiro.ai
  description: Production
security:
- bearer: []
- apiKey: []
- googleApiKey: []
tags:
- name: presets
  description: 'Saved presets: a model, fallbacks, params, a system prompt and tools under one name, called as `model: "@preset/"`.'
paths:
  /v1/presets:
    get:
      operationId: listPresets
      summary: List the organization's presets
      description: Every preset with its configuration, the 50 latest changes across them, and the limits. An admin key, or a console session.
      tags:
      - presets
      security:
      - adminKey: []
      responses:
        '200':
          description: The presets, by name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresetList'
        '401':
          description: 'unauthorized: no admin key and no console session.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'forbidden: a key that is not an admin key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createPreset
      summary: Create a preset
      description: Creates a preset under `name`. 409 preset_exists when the name is taken; PUT /v1/presets/{name} changes one. At most 100 presets per organization.
      tags:
      - presets
      security:
      - adminKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PresetInput'
              - type: object
                required:
                - name
                properties:
                  name:
                    $ref: '#/components/schemas/PresetName'
      responses:
        '201':
          description: The preset, at version 1.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresetEnvelope'
        '400':
          description: 'invalid_request: a field out of range: a bad name, a param that is not a preset param, a system prompt over 32 KB, more than 5 fallbacks.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'model_not_found: the model or a fallback is neither a catalog model nor one of your aliases.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'preset_exists, or limit_reached: 100 presets already.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/presets/{name}:
    get:
      operationId: getPreset
      summary: One preset
      description: The preset and its version history, newest first; every version keeps its whole configuration.
      tags:
      - presets
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/preset_name'
      responses:
        '200':
          description: The preset and its history.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - history
                properties:
                  data:
                    $ref: '#/components/schemas/Preset'
                  history:
                    type: array
                    items:
                      $ref: '#/components/schemas/PresetChange'
        '401':
          description: unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: preset_not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    put:
      operationId: putPreset
      summary: Create or replace a preset
      description: Saves the whole configuration as a new version; the previous one stays in the history. An unchanged body makes no new version.
      tags:
      - presets
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/preset_name'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PresetInput'
      responses:
        '200':
          description: The preset as it now is.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresetEnvelope'
        '201':
          description: A new preset.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresetEnvelope'
        '400':
          description: invalid_request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: model_not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'limit_reached: 100 presets already.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deletePreset
      summary: Delete a preset
      description: Requests naming it are refused with 404 preset_not_found from then on. The deletion is recorded in the history.
      tags:
      - presets
      security:
      - adminKey: []
      parameters:
      - $ref: '#/components/parameters/preset_name'
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                required:
                - deleted
                properties:
                  deleted:
                    type: string
        '401':
          description: unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: preset_not_found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PresetInput:
      type: object
      required:
      - model
      properties:
        model:
          type: string
          description: A model id from GET /v1/catalog, or one of your aliases.
        models:
          $ref: '#/components/schemas/FallbackModels'
        params:
          type: object
          description: 'Defaults the request''s own fields override: temperature, top_p, top_k, min_p, frequency_penalty, presence_penalty, repetition_penalty, max_tokens, max_completion_tokens, max_output_tokens, seed, stop, stop_sequences, reasoning, reasoning_effort, thinking, response_format, verbosity. Each is named for the request''s format (max_tokens becomes max_output_tokens on /v1/responses; stop becomes stop_sequences on /v1/messages); a request that sets any output limit, reasoning setting or stop keeps its own.'
          additionalProperties: true
        system_prompt:
          type:
          - string
          - 'null'
          description: Up to 32 KB. On /v1/chat/completions a leading system message, on /v1/messages `system`, on /v1/responses `instructions`.
        system_mode:
          type: string
          enum:
          - prepend
          - replace
          description: 'prepend (default): ahead of the request''s own system prompt. replace: in its place.'
        tools:
          type:
          - array
          - 'null'
          maxItems: 128
          items:
            type: object
            additionalProperties: true
          description: 'Tool declarations in the request''s format, server tools included. Merged with the request''s: a request tool replaces the preset tool of the same name (function name, or type for a server tool); the rest are appended.'
        description:
          type:
          - string
          - 'null'
          description: Up to 280 characters.
    FallbackModels:
      type: array
      maxItems: 5
      items:
        type: string
      description: Up to 5 model ids or aliases tried in order after `model` once every route of the one before has failed before a byte was sent. Each is billed at its own price when it answers; the key's allowlist applies to each.
    PresetChange:
      type: object
      required:
      - name
      - version
      - config
      - changed_at
      properties:
        name:
          type: string
        version:
          type: integer
        config:
          anyOf:
          - $ref: '#/components/schemas/PresetInput'
          - type: 'null'
          description: The whole configuration of this version; null for a deletion.
        changed_at:
          type: integer
          description: Unix milliseconds.
        changed_by:
          type:
          - string
          - 'null'
          description: The console user, or key:<id> for an admin key.
    Preset:
      type: object
      required:
      - name
      - version
      - model
      - models
      - params
      - system_prompt
      - system_mode
      - tools
      - description
      - created_at
      - updated_at
      properties:
        name:
          $ref: '#/components/schemas/PresetName'
        version:
          type: integer
          description: 1 on creation, one more on each change.
        model:
          type: string
        models:
          type: array
          items:
            type: string
        params:
          type: object
          additionalProperties: true
        system_prompt:
          type:
          - string
          - 'null'
        system_mode:
          type: string
          enum:
          - prepend
          - replace
        tools:
          type:
          - array
          - 'null'
          items:
            type: object
            additionalProperties: true
        description:
          type:
          - string
          - 'null'
        created_at:
          type: integer
          description: Unix milliseconds.
        updated_at:
          type: integer
          description: Unix milliseconds.
    PresetName:
      type: string
      pattern: ^[a-z0-9][a-z0-9._-]{0,63}$
      description: Lower-case letters, digits, dots, dashes and underscores; called as `@preset/<name>`. `preset` is reserved.
    PresetList:
      type: object
      required:
      - data
      - history
      - limits
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Preset'
        history:
          type: array
          items:
            $ref: '#/components/schemas/PresetChange'
        limits:
          type: object
          properties:
            presets:
              type: integer
              description: Presets per organization.
            system_prompt_bytes:
              type: integer
              description: Largest system prompt.
            fallback_models:
              type: integer
              description: Most fallback models.
    PresetEnvelope:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/Preset'
    Error:
      type: object
      description: The error envelope on OpenAI-format routes and on every route outside the chat formats.
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - type
          - code
          properties:
            message:
              type: string
              description: What went wrong, in plain words. Never names a host.
            type:
              type: string
              description: 'OpenAI''s error class for the status: invalid_request_error, authentication_error, insufficient_quota, permission_error, not_found_error, rate_limit_error or api_error.'
            param:
              type:
              - string
              - 'null'
              description: Always null.
            code:
              type: string
              description: 'A stable code, the ones named on each response: invalid_request, invalid_api_key, insufficient_balance, model_not_found, rate_limited, upstream_error and so on.'
  parameters:
    preset_name:
      name: name
      in: path
      required: true
      description: The preset's name, without `@preset/`.
      schema:
        type: string
        pattern: ^[a-z0-9][a-z0-9._-]{0,63}$
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer sk-msg-live-...`. The OpenAI SDK sends this.'
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: The same key in `x-api-key`, as the Anthropic SDK sends it. On GET /v1/models it selects Anthropic's list shape.
    googleApiKey:
      type: apiKey
      in: header
      name: x-goog-api-key
      description: The same key in `x-goog-api-key`, as the Gemini SDK sends it. On GET /v1/models it selects Google's list shape.
    adminKey:
      type: http
      scheme: bearer
      description: 'An admin key, created in the console: `Authorization: Bearer sk-msg-live-...`. It manages keys (/v1/keys) and log exports (/v1/exports), reads sessions and the usage CSV, and cannot call models.'