Marea Alcalina Webhook Endpoints API

The Webhook Endpoints API from Marea Alcalina — 3 operation(s) for webhook endpoints.

GitHub OpenAPI

Operations 6

POST /v1/webhook_endpoints Use this when you want to register a webhook endpoint that receives one or more… #
GET /v1/webhook_endpoints Use this when you want to list every webhook endpoint owned by the caller… #
GET /v1/webhook_endpoints/{id} Use this when you want to fetch a single webhook endpoint by its id #
POST /v1/webhook_endpoints/{id} Use this when you want to patch one or more fields of an existing webhook… #
DELETE /v1/webhook_endpoints/{id} Use this when you want to permanently delete a webhook endpoint. #
POST /v1/webhook_endpoints/{id}/rotate-secret Use this when you want to rotate the signing secret of a webhook endpoint. #

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/mareaalcalina-com:mareaalcalina-com-webhook-endpoints-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

mareaalcalina-com-webhook-endpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Marea Alcalina Webhook Endpoints API
  version: 1.0.0
servers:
- url: https://api.mareaalcalina.com
tags:
- name: Webhook Endpoints
paths:
  /v1/webhook_endpoints:
    post:
      operationId: createWebhookEndpoint
      summary: Use this when you want to register a webhook endpoint that receives one or more…
      description: 'Creates a webhook endpoint as a first-class object. The returned `signingSecret` is the only time the secret is visible — store it now; rotate via `POST /v1/webhook_endpoints/{id}/rotate-secret` if lost. Per-event subscription is controlled by `subscribedEvents`. A developer endpoint can subscribe to `order.*` events from any storefront the caller bootstrapped — Marea resolves the merchant → developer chain at dispatch time, so one endpoint covers every storefront. Hard caps: 16 endpoints per account; URL ≤2048 chars; HTTPS only; rejects loopback / private / metadata hostnames.'
      security:
      - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  maxLength: 2048
                description:
                  type:
                  - string
                  - 'null'
                  maxLength: 256
                enabled:
                  type:
                  - boolean
                  - 'null'
                subscribedEvents:
                  type: array
                  items:
                    type: string
                    enum:
                    - user.verified
                    - user.cancelled
                    - order.created
                    - order.status_updated
                    - order.paid
                  minItems: 1
                  maxItems: 5
              required:
              - url
              - subscribedEvents
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpointId:
                    type: string
                  scope:
                    type: string
                    enum:
                    - developer
                    - merchant
                  url:
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  subscribedEvents:
                    type: array
                    items:
                      type: string
                      enum:
                      - user.verified
                      - user.cancelled
                      - order.created
                      - order.status_updated
                      - order.paid
                  signingSecretVersion:
                    type: integer
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                  lastDeliveryAt:
                    type:
                    - string
                    - 'null'
                  lastDeliveryStatus:
                    type:
                    - string
                    - 'null'
                    enum:
                    - success
                    - failure
                  consecutiveFailures:
                    type: integer
                    minimum: 0
                  signingSecret:
                    type: string
                    pattern: ^[0-9a-f]{64}$
                required:
                - endpointId
                - scope
                - url
                - description
                - enabled
                - subscribedEvents
                - signingSecretVersion
                - createdAt
                - updatedAt
                - lastDeliveryAt
                - lastDeliveryStatus
                - consecutiveFailures
                - signingSecret
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
    get:
      operationId: listWebhookEndpoints
      summary: Use this when you want to list every webhook endpoint owned by the caller…
      description: Returns up to 16 endpoints (cap per account). Never returns the signing secret — use `POST /v1/webhook_endpoints/{id}/rotate-secret` if you need a new one.
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpoints:
                    type: array
                    items:
                      type: object
                      properties:
                        endpointId:
                          type: string
                        scope:
                          type: string
                          enum:
                          - developer
                          - merchant
                        url:
                          type: string
                        description:
                          type:
                          - string
                          - 'null'
                        enabled:
                          type: boolean
                        subscribedEvents:
                          type: array
                          items:
                            type: string
                            enum:
                            - user.verified
                            - user.cancelled
                            - order.created
                            - order.status_updated
                            - order.paid
                        signingSecretVersion:
                          type: integer
                        createdAt:
                          type: string
                        updatedAt:
                          type: string
                        lastDeliveryAt:
                          type:
                          - string
                          - 'null'
                        lastDeliveryStatus:
                          type:
                          - string
                          - 'null'
                          enum:
                          - success
                          - failure
                        consecutiveFailures:
                          type: integer
                          minimum: 0
                      required:
                      - endpointId
                      - scope
                      - url
                      - description
                      - enabled
                      - subscribedEvents
                      - signingSecretVersion
                      - createdAt
                      - updatedAt
                      - lastDeliveryAt
                      - lastDeliveryStatus
                      - consecutiveFailures
                required:
                - endpoints
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
  /v1/webhook_endpoints/{id}:
    get:
      operationId: getWebhookEndpoint
      summary: Use this when you want to fetch a single webhook endpoint by its id
      description: Returns the endpoint excluding the signing secret. Useful for verifying current event subscriptions, enablement status, and recent-delivery summary.
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^mk_we_[0-9a-f]{16}$
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpointId:
                    type: string
                  scope:
                    type: string
                    enum:
                    - developer
                    - merchant
                  url:
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  subscribedEvents:
                    type: array
                    items:
                      type: string
                      enum:
                      - user.verified
                      - user.cancelled
                      - order.created
                      - order.status_updated
                      - order.paid
                  signingSecretVersion:
                    type: integer
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                  lastDeliveryAt:
                    type:
                    - string
                    - 'null'
                  lastDeliveryStatus:
                    type:
                    - string
                    - 'null'
                    enum:
                    - success
                    - failure
                  consecutiveFailures:
                    type: integer
                    minimum: 0
                required:
                - endpointId
                - scope
                - url
                - description
                - enabled
                - subscribedEvents
                - signingSecretVersion
                - createdAt
                - updatedAt
                - lastDeliveryAt
                - lastDeliveryStatus
                - consecutiveFailures
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
    post:
      operationId: updateWebhookEndpoint
      summary: Use this when you want to patch one or more fields of an existing webhook…
      description: Accepts a partial update; only the fields present in the body are modified. Cannot rotate the signing secret here — use the dedicated rotate-secret callable / endpoint. Does NOT return the signing secret.
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^mk_we_[0-9a-f]{16}$
        required: true
        name: id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  maxLength: 2048
                description:
                  type:
                  - string
                  - 'null'
                  maxLength: 256
                enabled:
                  type: boolean
                subscribedEvents:
                  type: array
                  items:
                    type: string
                    enum:
                    - user.verified
                    - user.cancelled
                    - order.created
                    - order.status_updated
                    - order.paid
                  minItems: 1
                  maxItems: 5
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpointId:
                    type: string
                  scope:
                    type: string
                    enum:
                    - developer
                    - merchant
                  url:
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  subscribedEvents:
                    type: array
                    items:
                      type: string
                      enum:
                      - user.verified
                      - user.cancelled
                      - order.created
                      - order.status_updated
                      - order.paid
                  signingSecretVersion:
                    type: integer
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                  lastDeliveryAt:
                    type:
                    - string
                    - 'null'
                  lastDeliveryStatus:
                    type:
                    - string
                    - 'null'
                    enum:
                    - success
                    - failure
                  consecutiveFailures:
                    type: integer
                    minimum: 0
                required:
                - endpointId
                - scope
                - url
                - description
                - enabled
                - subscribedEvents
                - signingSecretVersion
                - createdAt
                - updatedAt
                - lastDeliveryAt
                - lastDeliveryStatus
                - consecutiveFailures
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
    delete:
      operationId: deleteWebhookEndpoint
      summary: Use this when you want to permanently delete a webhook endpoint.
      description: Hard delete — there is no soft-delete state for endpoints. Idempotent for 404 callers (returns 404 if already absent).
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^mk_we_[0-9a-f]{16}$
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                    - true
                  endpointId:
                    type: string
                required:
                - ok
                - endpointId
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
  /v1/webhook_endpoints/{id}/rotate-secret:
    post:
      operationId: rotateSecretWebhookEndpoint
      summary: Use this when you want to rotate the signing secret of a webhook endpoint.
      description: No overlap window in v1 — coordinate the rotation with your receiver. The returned `signingSecret` is the only time the new secret is visible; store it before responding to the next webhook. Bumps `signingSecretVersion` by one.
      security:
      - BearerAuth: []
      parameters:
      - schema:
          type: string
          pattern: ^mk_we_[0-9a-f]{16}$
        required: true
        name: id
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  endpointId:
                    type: string
                  scope:
                    type: string
                    enum:
                    - developer
                    - merchant
                  url:
                    type: string
                  description:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  subscribedEvents:
                    type: array
                    items:
                      type: string
                      enum:
                      - user.verified
                      - user.cancelled
                      - order.created
                      - order.status_updated
                      - order.paid
                  signingSecretVersion:
                    type: integer
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                  lastDeliveryAt:
                    type:
                    - string
                    - 'null'
                  lastDeliveryStatus:
                    type:
                    - string
                    - 'null'
                    enum:
                    - success
                    - failure
                  consecutiveFailures:
                    type: integer
                    minimum: 0
                  signingSecret:
                    type: string
                    pattern: ^[0-9a-f]{64}$
                required:
                - endpointId
                - scope
                - url
                - description
                - enabled
                - subscribedEvents
                - signingSecretVersion
                - createdAt
                - updatedAt
                - lastDeliveryAt
                - lastDeliveryStatus
                - consecutiveFailures
                - signingSecret
        '400':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '410':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '413':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: §9.6 error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      tags:
      - Webhook Endpoints
components:
  schemas:
    ApiErrorUpgrade:
      type:
      - object
      - 'null'
      properties:
        currentPlan:
          type: string
          example: free
        requiredPlan:
          type: string
          example: pro
        upgradeUrl:
          type: string
          example: https://mareaalcalina.com/menus/profile?changePlan=basic&frequency=monthly&planSource=api
        previewUrl:
          type: string
          description: Optional preview link the agent can surface.
      required:
      - currentPlan
      - requiredPlan
      - upgradeUrl
    ApiNextAction:
      type: object
      properties:
        label:
          type: string
          example: Validate the JSON before retrying.
        method:
          type:
          - string
          - 'null'
          example: null
        url:
          type:
          - string
          - 'null'
          example: null
      required:
      - label
      - method
      - url
      description: A concrete action the agent can offer the user.
    ApiErrorBody:
      type: object
      properties:
        type:
          type: string
          enum:
          - rate_limited
          - invalid_request
          - auth
          - not_found
          - plan_limit
          - internal
          - conflict
          - idempotency_conflict
          - service_unavailable
          - tos_not_accepted
          description: High-level error category. Agents branch on this.
          example: auth
        code:
          type: string
          description: Stable machine-readable code.
          example: missing_authorization
        message:
          type: string
          description: Human-readable, localized via Accept-Language.
        doc:
          type: string
          description: Link to the error reference in the docs.
          example: https://docs.mareaalcalina.com/concepts/errors
        param:
          type:
          - string
          - 'null'
        requestId:
          type: string
          example: req_30a9358b-70bd-44f3-aa5d-8983b558ad84
        recoverable:
          type: boolean
        retryAfterMs:
          type:
          - integer
          - 'null'
        nextActions:
          type: array
          items:
            $ref: '#/components/schemas/ApiNextAction'
        upgrade:
          $ref: '#/components/schemas/ApiErrorUpgrade'
        requiredScopes:
          type: array
          items:
            type: string
        heldScopes:
          type: array
          items:
            type: string
      required:
      - type
      - code
      - message
      - doc
      - param
      - requestId
      - recoverable
      - retryAfterMs
      - nextActions
      - upgrade
    ApiErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorBody'
      required:
      - error
      description: §9.6 uniform error envelope. Every non-2xx response uses this shape.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mk_dev_* | mk_user_*
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Alternative to `Authorization: Bearer`. Same `mk_*` value. Use only when your environment cannot send the `Authorization` header.'