Nautilinks Commerce API

Balance, order, quote, and delivery lifecycle.

GitHub OpenAPI

Operations 5

GET /balance Get prepaid balance #
GET /orders List account orders #
POST /orders Create or simulate an order #
GET /orders/{orderId} Get order and placement status #
GET /quotes/{quoteId} Get quote payment status #

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/nautilinks-co:nautilinks-co-commerce-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

nautilinks-co-commerce-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nautilinks Agent Commerce API
  version: 1.0.0
  description: Machine-to-machine API for searching the Nautilinks backlink catalog, creating guarded orders, tracking publication, and subscribing to signed webhooks. Live and sandbox keys use the same endpoint; a sandbox key has the `sn_test_` prefix and never creates or charges a real order.
  contact:
    name: Nautilinks developer support
    url: https://nautilinks.co/en/developers/
    email: contact@nautilinks.co
  license:
    name: Proprietary — Nautilinks API terms
    url: https://nautilinks.co/en/terms/
servers:
- url: https://nautilinks.co/api/v1/agent
  description: Nautilinks production and sandbox API
security:
- bearerAuth: []
tags:
- name: Commerce
  description: Balance, order, quote, and delivery lifecycle.
paths:
  /balance:
    get:
      operationId: getPrepaidBalance
      summary: Get prepaid balance
      description: Returns the account's prepaid credit so an agent can determine whether an order may settle immediately or require a human-approved Stripe payment link.
      tags:
      - Commerce
      responses:
        '200':
          description: Current prepaid balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BalanceResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /orders:
    get:
      operationId: listOrders
      summary: List account orders
      description: Lists orders owned by the API-key account, newest state included.
      tags:
      - Commerce
      responses:
        '200':
          description: Order summaries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        default:
          $ref: '#/components/responses/UnexpectedError'
    post:
      operationId: createOrder
      summary: Create or simulate an order
      description: Creates a 1-20 item backlink order. A live key may spend existing prepaid credit immediately; any card remainder is returned as a Stripe URL that a human must open. A sandbox key validates and prices the same payload without writes or charges. Reuse the same Idempotency-Key after timeouts.
      tags:
      - Commerce
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        description: The desired placements and optional discount/sandbox balance simulation.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrderRequest'
      responses:
        '200':
          description: Created, pending-payment, or sandbox order result. Inspect `payment_url`, `sandbox`, and `order_status` instead of assuming money moved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOrderResponse'
        '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'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /orders/{orderId}:
    get:
      operationId: getOrder
      summary: Get order and placement status
      description: Returns one owned order and the lifecycle state of each link, including the published URL when available.
      tags:
      - Commerce
      parameters:
      - $ref: '#/components/parameters/OrderId'
      responses:
        '200':
          description: Detailed order status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /quotes/{quoteId}:
    get:
      operationId: getQuote
      summary: Get quote payment status
      description: Polls a pending quote after a human receives a payment URL and returns the resulting order identifier once conversion completes.
      tags:
      - Commerce
      parameters:
      - $ref: '#/components/parameters/QuoteId'
      responses:
        '200':
          description: Quote, payment split, and resulting order state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  parameters:
    QuoteId:
      name: quoteId
      in: path
      required: true
      description: Quote identifier returned by createOrder when payment is pending.
      schema:
        type: string
        minLength: 1
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Stable caller-generated key for safe write retries. Reusing a key with a different body returns 409.
      schema:
        type: string
        minLength: 1
        maxLength: 200
    OrderId:
      name: orderId
      in: path
      required: true
      description: Order identifier returned by createOrder or getQuote.
      schema:
        type: string
        minLength: 1
  responses:
    Unauthorized:
      description: The API key is missing, invalid, or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Nautilinks encountered an unexpected internal error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource does not exist or is not visible to this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: A required payment or upstream service is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: The request is syntactically or semantically invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: The request quota or rolling daily order cap was reached.
      headers:
        Retry-After:
          description: Seconds the caller must wait before retrying.
          required: true
          schema:
            type: integer
            minimum: 1
        RateLimit:
          $ref: '#/components/headers/RateLimit'
        RateLimit-Policy:
          $ref: '#/components/headers/RateLimitPolicy'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: The request conflicts with current inventory, payment, or idempotency state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: Any non-success status not listed explicitly uses the same typed error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks the required scope or resource ownership.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Amounts:
      type: object
      additionalProperties: false
      required:
      - gross_cents
      - discount_cents
      - net_cents
      - credit_cents
      - card_cents
      properties:
        gross_cents:
          type: integer
          minimum: 0
        discount_cents:
          type: integer
          minimum: 0
        net_cents:
          type: integer
          minimum: 0
        credit_cents:
          type: integer
          minimum: 0
        card_cents:
          type: integer
          minimum: 0
    OrderItemInput:
      type: object
      additionalProperties: false
      required:
      - site_id
      - target_url
      - anchor_text
      properties:
        site_id:
          type: integer
          minimum: 1
        target_url:
          type: string
          format: uri
          maxLength: 500
        anchor_text:
          type: string
          minLength: 1
          maxLength: 200
        anchor_type:
          $ref: '#/components/schemas/AnchorType'
        content_brief:
          type:
          - string
          - 'null'
          maxLength: 2000
        format:
          $ref: '#/components/schemas/LinkFormat'
        article_id:
          type:
          - integer
          - 'null'
          minimum: 1
          description: Required when format is lien_insere.
        tier2_pack_size:
          type: integer
          enum:
          - 0
          - 1
          - 3
          - 5
          default: 0
        project_id:
          type:
          - integer
          - 'null'
          minimum: 1
    QuoteResponse:
      type: object
      additionalProperties: false
      required:
      - ok
      - quote_id
      - status
      - gross_total_eur
      - total_eur
      - discount_eur
      - credit_applied_cents
      - card_amount_cents
      - amounts
      - created_at
      - items_count
      - order_id
      - order_status
      properties:
        ok:
          type: boolean
          const: true
        quote_id:
          type: string
        status:
          type: string
        gross_total_eur:
          type: number
          minimum: 0
        total_eur:
          type: number
          minimum: 0
        discount_eur:
          type: number
          minimum: 0
        applied_discount_code:
          type:
          - string
          - 'null'
        credit_applied_cents:
          type: integer
          minimum: 0
        card_amount_cents:
          type: integer
          minimum: 0
        amounts:
          $ref: '#/components/schemas/Amounts'
        created_at:
          type: string
        items_count:
          type: integer
          minimum: 0
        order_id:
          type:
          - string
          - 'null'
        order_status:
          type:
          - string
          - 'null'
    OrderResponse:
      type: object
      additionalProperties: false
      required:
      - ok
      - order
      properties:
        ok:
          type: boolean
          const: true
        order:
          $ref: '#/components/schemas/Order'
    CreateOrderRequest:
      type: object
      additionalProperties: false
      required:
      - items
      properties:
        items:
          type: array
          minItems: 1
          maxItems: 20
          items:
            $ref: '#/components/schemas/OrderItemInput'
        promo_code:
          type: string
          maxLength: 80
        sandbox_credit_cents:
          type: integer
          minimum: 0
          description: 'Sandbox keys only: simulated prepaid balance used to test payment branches.'
    CreateOrderResponse:
      type: object
      additionalProperties: true
      required:
      - ok
      - order_status
      - payment_url
      - items_count
      - amounts
      properties:
        ok:
          type: boolean
          const: true
        sandbox:
          type: boolean
          default: false
        quote_id:
          type:
          - string
          - 'null'
        order_id:
          type:
          - string
          - 'null'
        order_status:
          type: string
        payment_url:
          type:
          - string
          - 'null'
          format: uri
          description: A human must open this URL when non-null.
        items_count:
          type: integer
          minimum: 1
          maximum: 20
        would_require_human_payment:
          type: boolean
        applied_discount_code:
          type:
          - string
          - 'null'
        gross_total_eur:
          type: number
          minimum: 0
        total_eur:
          type: number
          minimum: 0
        discount_eur:
          type: number
          minimum: 0
        credit_applied_cents:
          type: integer
          minimum: 0
        card_amount_cents:
          type: integer
          minimum: 0
        amounts:
          $ref: '#/components/schemas/Amounts'
    OrderSummary:
      type: object
      additionalProperties: false
      required:
      - id
      - status
      - total_eur
      - created_at
      - items_count
      properties:
        id:
          type: string
        status:
          type: string
        total_eur:
          type: number
          minimum: 0
        created_at:
          type: string
        items_count:
          type: integer
          minimum: 0
    OrderItem:
      type: object
      additionalProperties: false
      required:
      - site_domain
      - format
      - status
      - anchor_text
      - target_url
      - published_url
      - article_id
      - tier2_count
      - project_id
      properties:
        site_domain:
          type: string
        format:
          $ref: '#/components/schemas/LinkFormat'
        status:
          type: string
          enum:
          - to_assign
          - assigned
          - drafted
          - in_review
          - approved
          - published
          - verified
          - cancelled
          - replaced
        anchor_text:
          type: string
        target_url:
          type: string
          format: uri
        published_url:
          type:
          - string
          - 'null'
          format: uri
        article_id:
          type:
          - integer
          - 'null'
        tier2_count:
          type: integer
          minimum: 0
        project_id:
          type:
          - integer
          - 'null'
    LinkFormat:
      type: string
      enum:
      - article_unitaire
      - lien_insere
    BalanceResponse:
      type: object
      additionalProperties: false
      required:
      - ok
      - balance_cents
      - balance_eur
      properties:
        ok:
          type: boolean
          const: true
        balance_cents:
          type: integer
          minimum: 0
        balance_eur:
          type: number
          minimum: 0
    AnchorType:
      type: string
      enum:
      - exact
      - partial
      - branded
      - generic
      - naked
    OrderListResponse:
      type: object
      additionalProperties: false
      required:
      - ok
      - count
      - orders
      properties:
        ok:
          type: boolean
          const: true
        count:
          type: integer
          minimum: 0
        orders:
          type: array
          items:
            $ref: '#/components/schemas/OrderSummary'
    Error:
      type: object
      additionalProperties: true
      required:
      - ok
      - error
      - code
      - message
      - resolution
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
          description: Backward-compatible stable error code.
        code:
          type: string
          description: Stable machine-readable error code.
        message:
          type: string
          description: Human-readable explanation.
        resolution:
          type: string
          description: Concrete recovery hint for an agent.
    Order:
      type: object
      additionalProperties: false
      required:
      - id
      - status
      - total_eur
      - created_at
      - items
      properties:
        id:
          type: string
        status:
          type: string
        total_eur:
          type: number
          minimum: 0
        created_at:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/OrderItem'
  headers:
    RateLimit:
      description: Current quota name, remaining requests, and seconds until reset, encoded as an HTTP Structured Field Dictionary.
      schema:
        type: string
        example: '"agent-api";r=599;t=42'
    RateLimitPolicy:
      description: Quota name, request limit, and window in seconds, encoded as an HTTP Structured Field List.
      schema:
        type: string
        example: '"agent-api";q=600;w=60'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sn_live_<40 hex> or sn_test_<40 hex>
      description: Create a live or sandbox key in the Nautilinks member area. Send it on every request; never put it in a URL.
externalDocs:
  description: Nautilinks developer portal and quickstart
  url: https://nautilinks.co/en/developers/