SERP Agent Conversions API

Report real leads from your own server, so articles can be judged by business outcome and not only by clicks.

GitHub OpenAPI

Operations 1

POST /v1/projects/{projectId}/conversions Report a conversion from your server #

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/serp-agent-com:serp-agent-com-conversions-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

serp-agent-com-conversions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SERP Agent Conversions API
  version: 1.0.0
  description: 'Agent-ready SEO automation API: programmatic signup, technical site audits, and end-to-end SEO article generation. Designed for AI agents — instant sandbox keys (no CAPTCHA, no payment method), uniform machine-readable errors, idempotent POSTs, and signed webhooks. All request and response fields are snake_case. Quickstart for agents: https://serp-agent.com/docs/agents'
  contact:
    url: https://serp-agent.com/docs
servers:
- url: https://serp-agent.com
  description: Production
security:
- apiKey: []
tags:
- name: Conversions
  description: Report real leads from your own server, so articles can be judged by business outcome and not only by clicks.
paths:
  /v1/projects/{projectId}/conversions:
    post:
      operationId: recordConversion
      summary: Report a conversion from your server
      description: 'Reports one real conversion — a lead your own systems already accepted. The browser tracker (one line, see https://serp-agent.com/docs/tracking) can only observe that a form was SENT; a form backend, CRM webhook or booking system knows whether the lead was accepted, which is what makes a server report trustworthy enough to count as a business outcome.


        Attribution: the conversion is credited to one article, in this order — `articleUrl` (explicit), `ctaTrackingId`, `pageUrl`, then `landingUrl` (the page the visit started on, which is what usually names the article). The response says which one was used. A conversion that matches no article is still stored and counted for the project.


        Idempotency: pass `externalId` — your own lead id. A repeat with the same id is ignored and answered 200 with `duplicate: true`, so retries and webhook redeliveries cannot inflate the numbers.


        Never send personal data: no names, emails, phone numbers or message bodies. Only the event type, the pages involved and your own lead id.'
      tags:
      - Conversions
      parameters:
      - name: projectId
        in: path
        required: true
        description: Project id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - eventType
              properties:
                eventType:
                  type: string
                  enum:
                  - FORM_SUBMIT
                  - CALENDAR_BOOKED
                  - PHONE_CLICK
                  - EMAIL_CLICK
                  - CTA_CLICK
                  description: What happened. FORM_SUBMIT and CALENDAR_BOOKED are the ones a server normally reports.
                externalId:
                  type: string
                  maxLength: 200
                  description: Your own id for this lead. Makes the call idempotent — a repeat is ignored.
                pageUrl:
                  type: string
                  format: uri
                  maxLength: 2000
                  description: Page the conversion happened on.
                landingUrl:
                  type: string
                  format: uri
                  maxLength: 2000
                  description: Page the visit started on. Usually the article that earned the lead.
                articleUrl:
                  type: string
                  format: uri
                  maxLength: 2000
                  description: Explicit article URL when you already know which article to credit. Strongest evidence.
                occurredAt:
                  type: string
                  format: date-time
                  description: When it happened (ISO 8601). Defaults to now; must not be more than 5 minutes in the future.
                ctaTrackingId:
                  type: string
                  maxLength: 200
                  description: Value of the data-sa-cta attribute on the button, when your pages use one.
                utm_source:
                  type: string
                  maxLength: 100
                utm_medium:
                  type: string
                  maxLength: 100
                utm_campaign:
                  type: string
                  maxLength: 200
                utm_content:
                  type: string
                  maxLength: 200
            example:
              eventType: FORM_SUBMIT
              externalId: lead_88421
              pageUrl: https://example.com/contact
              landingUrl: https://example.com/blog/how-to-choose-movers
              occurredAt: '2026-09-18T09:12:04Z'
      responses:
        '200':
          description: Already reported under this `externalId` — nothing was stored a second time.
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionRecorded'
              example:
                recorded: false
                duplicate: true
                article_attributed: true
                attribution: none
        '201':
          description: Conversion stored.
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionRecorded'
              example:
                recorded: true
                duplicate: false
                article_attributed: true
                attribution: landing
        '400':
          description: 'Malformed body, unknown eventType, a URL that is not a URL, or occurredAt in the future. Code: `invalid_request`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: invalid_request
                  message: 'eventType: Invalid enum value. Expected ''CTA_CLICK'' | ''FORM_SUBMIT'' | ''PHONE_CLICK'' | ''EMAIL_CLICK'' | ''CALENDAR_BOOKED''.'
                  doc_url: https://serp-agent.com/docs/errors#invalid_request
        '401':
          description: 'Missing, malformed, unknown, revoked, or expired API key. Codes: `unauthorized`, `key_revoked`, `key_expired`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: 'Missing or malformed Authorization header. Expected: Bearer sk_...'
                  doc_url: https://serp-agent.com/docs/errors#unauthorized
        '404':
          description: 'No such project on this account. Code: `not_found`.'
          headers:
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: Project not found.
                  doc_url: https://serp-agent.com/docs/errors#not_found
        '429':
          description: Rate limit exceeded (600 requests/minute per API key). Honor `Retry-After`.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Request budget for the current window (600/min per API key on authenticated routes; 5/hour per IP on signup).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix timestamp (seconds) when the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded for this API key.
                  doc_url: https://serp-agent.com/docs/errors#rate_limited
components:
  schemas:
    ConversionRecorded:
      type: object
      description: Outcome of a reported conversion.
      required:
      - recorded
      - duplicate
      - article_attributed
      - attribution
      properties:
        recorded:
          type: boolean
          description: True when this call stored a new conversion.
        duplicate:
          type: boolean
          description: True when the same externalId was already reported.
        article_attributed:
          type: boolean
          description: True when the conversion was credited to one of your articles.
        attribution:
          type: string
          enum:
          - explicit
          - cta
          - page
          - landing
          - none
          description: 'Which signal credited the article: articleUrl (explicit), ctaTrackingId (cta), pageUrl (page), landingUrl (landing), or none.'
    Error:
      type: object
      description: 'Uniform error body returned by every non-2xx response. `code` is machine-readable (full catalog: https://serp-agent.com/docs/errors); `doc_url` links its documentation.'
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - doc_url
          properties:
            code:
              type: string
              example: rate_limited
            message:
              type: string
              description: Human/agent-readable explanation, often with the exact next step.
            doc_url:
              type: string
              format: uri
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key in the Authorization header: `Authorization: Bearer sk_sandbox_...` (trial) or `Bearer sk_live_...` (paid). Keys are obtained from POST /v1/accounts (instant sandbox key) or POST /v1/api-keys. The raw key is shown exactly once at creation — only a hash is stored. Sandbox keys expire after 14 days.'
x-sandbox-limits:
  description: 'Hard caps on a free sandbox trial (per key): 1 project, 1 audit, 2 draft-only articles; the key expires after 14 days. Exceeding a cap returns 403 sandbox_limit_reached with the upgrade URL. Upgrade: https://serp-agent.com/pricing'
  projects: 1
  audits: 1
  articles: 2
  expires_days: 14