> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create webhook endpoint

> Create a new webhook endpoint for the calling API key and generate a `whsec_`-prefixed signing secret.
The secret is returned once in the response body. Store it immediately; it cannot be read again except by replaying the same `Idempotency-Key` within 24 hours before the endpoint is deleted or rotated.

Each API key can have up to 10 active webhook endpoints. Creating an 11th endpoint returns `400`.
URLs must use HTTPS, be 2048 characters or fewer, resolve over DNS, and not target localhost, private or internal IP ranges, or cloud metadata endpoints.
Configuration mutations share a per-key rate limit of 10 requests per minute.




## OpenAPI

````yaml /openapi.yaml post /v1/webhook-endpoints
openapi: 3.0.3
info:
  title: Para REST API
  version: '1.0'
  description: Server-to-server wallet creation and signing over HTTP
servers:
  - url: https://api.beta.getpara.com
    description: Beta
  - url: https://api.getpara.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/webhook-endpoints:
    post:
      tags:
        - Webhooks
      summary: Create webhook endpoint
      description: >
        Create a new webhook endpoint for the calling API key and generate a
        `whsec_`-prefixed signing secret.

        The secret is returned once in the response body. Store it immediately;
        it cannot be read again except by replaying the same `Idempotency-Key`
        within 24 hours before the endpoint is deleted or rotated.


        Each API key can have up to 10 active webhook endpoints. Creating an
        11th endpoint returns `400`.

        URLs must use HTTPS, be 2048 characters or fewer, resolve over DNS, and
        not target localhost, private or internal IP ranges, or cloud metadata
        endpoints.

        Configuration mutations share a per-key rate limit of 10 requests per
        minute.
      operationId: createWebhookEndpoint
      parameters:
        - $ref: '#/components/parameters/RequestId'
        - $ref: '#/components/parameters/WebhookSecretIdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWebhookEndpointRequest'
      responses:
        '201':
          description: Webhook endpoint created
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/WebhookEndpointWithSecret'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/WebhookSecretIdempotencyConflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/WebhookConfigRateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: UUID for request tracing. Para returns one if omitted.
      schema:
        type: string
        format: uuid
    WebhookSecretIdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >
        Optional idempotency key for safe retries when issuing a webhook signing
        secret.

        If the same key and request are retried within 24 hours while the
        endpoint is still active and its secret has not been rotated again, Para
        replays the original response (including the secret) with
        `X-Idempotent-Replayed: true`.

        Returns `422` if reused with a different request path or body, or `409`
        if the original request is still in flight (`CONFLICT`) or the endpoint
        was deleted or rotated after the key was used (`IDEMPOTENCY_CONFLICT`).
      schema:
        type: string
        maxLength: 256
  schemas:
    CreateWebhookEndpointRequest:
      type: object
      additionalProperties: false
      required:
        - url
        - events
      properties:
        url:
          type: string
          format: uri
          maxLength: 2048
          description: >-
            Public HTTPS URL (max 2048 characters). Must resolve over DNS and
            cannot target localhost, private or internal IP addresses, or cloud
            metadata endpoints.
          example: https://example.com/webhooks/para
        events:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/SubscribableWebhookEventType'
          description: >-
            One or more subscribable event types. Duplicate entries are
            deduplicated.
        enabled:
          type: boolean
          default: true
          description: Whether delivery is enabled immediately. Defaults to `true`.
        description:
          type: string
          nullable: true
          maxLength: 255
          description: Optional label for the endpoint (max 255 characters).
        payloadVersion:
          allOf:
            - $ref: '#/components/schemas/WebhookPayloadVersion'
          default: 1
          description: Delivery payload version (`1` or `2`). Defaults to `1`.
    WebhookEndpointWithSecret:
      allOf:
        - $ref: '#/components/schemas/WebhookEndpoint'
        - type: object
          required:
            - secret
          properties:
            secret:
              type: string
              description: >-
                Signing secret prefixed with `whsec_`. Returned once at
                creation.
              example: whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw
    SubscribableWebhookEventType:
      type: string
      description: Webhook event types that an endpoint can subscribe to.
      enum:
        - user.created
        - wallet.created
        - transaction.signed
        - send.broadcasted
        - send.confirmed
        - send.failed
        - rest.transaction.confirmed
        - rest.transaction.failed
        - wallet.pregen_claimed
        - user.external_wallet_verified
        - onramp.completed
        - user.two_factor_reset
        - funds.received
        - approval.pending
        - approval.approved
        - approval.rejected
        - approval.executed
        - approval.expired
        - approval.failed
        - rest.transaction.broadcasted
        - rest.transaction.still_pending
        - rest.transaction.reverted
        - rest.transaction.replaced
        - send.still_pending
        - send.reverted
        - send.replaced
        - user.authenticated
        - user.account_linked
        - user.account_unlinked
        - user.two_factor_enabled
        - user.two_factor_removed
        - wallet.recovery_started
        - wallet.recovered
        - funds.sent
        - policy.activated
        - policy.archived
        - consent.granted
        - consent.revoked
        - onramp.cancelled
        - user.merged
        - wallet.private_key_exported
    WebhookPayloadVersion:
      type: integer
      enum:
        - 1
        - 2
      description: >-
        Payload version delivered to the endpoint (`1` for legacy shapes on
        v1-capable events, `2` for normalized fields). Event types that only
        exist in version 2 always arrive with `"version": 2`.
    WebhookEndpoint:
      type: object
      required:
        - id
        - url
        - events
        - enabled
        - description
        - payloadVersion
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the webhook endpoint.
          example: 9a3d5f2e-1b4c-48d0-9e7a-3c2b1f4e5d6a
        url:
          type: string
          format: uri
          maxLength: 2048
          description: HTTPS URL where Para sends signed POST requests.
          example: https://example.com/webhooks/para
        events:
          type: array
          items:
            $ref: '#/components/schemas/SubscribableWebhookEventType'
          description: Subscribed event types.
        enabled:
          type: boolean
          description: Whether Para delivers new events to this endpoint.
        description:
          type: string
          nullable: true
          maxLength: 255
          description: Optional human-readable label for the endpoint.
          example: Production billing receiver
        payloadVersion:
          $ref: '#/components/schemas/WebhookPayloadVersion'
        createdAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp when the endpoint was created.
        updatedAt:
          type: string
          format: date-time
          description: ISO 8601 timestamp when the endpoint was last updated.
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code for programmatic handling
          example: INVALID_REQUEST
        message:
          type: string
          description: Human-readable error message
        transactionId:
          type: string
          format: uuid
          description: >-
            Persisted transaction record id. Present only when a broadcast
            request failed after a history row was created.
        failureStage:
          type: string
          enum:
            - mpc_sign
            - signature_apply
            - signer_verify
            - broadcast
            - monitor_timeout
          description: >-
            Which stage of the broadcast lifecycle failed. Present on persisted
            broadcast failures.
        failureCode:
          type: string
          description: >-
            Machine-readable failure reason from the underlying broadcast helper
            (e.g. `INSUFFICIENT_NATIVE_BALANCE`, `EXECUTION_FAILED`). Present on
            broadcast-stage failures.
        screeningId:
          type: string
          description: >-
            ID of the screening decision. Present on `SANCTIONED_ADDRESS`,
            `ADDRESS_SCREENING_BLOCKED` and `ADDRESS_SCREENING_HOLD`. Send a
            hold's ID as `screeningRelease` to release it.
        reason:
          type: string
          enum:
            - rate_limited
            - key_rejected
          description: >-
            Optional detail on `ADDRESS_SCREENING_UNAVAILABLE`. `rate_limited`
            means the screening provider is rate limiting requests; retry the
            request. `key_rejected` means TRM Labs refused the API key's own TRM
            key (unknown, revoked or without Wallet Screening access); save a
            working key in the Developer Portal, then retry. Returned only on
            the synchronous 403 from transfer requests and `GET
            /v1/address-screening/status`; the transfer is still blocked.
            Omitted for other screening outages and not recorded on tracked
            operations.
        signedTransaction:
          type: string
          description: >-
            Legacy signed transaction bytes on broadcast failures after signing.
            Sponsored responses never expose signed payloads.
      additionalProperties: true
      description: >
        All error responses include `code` and `message` fields. Some errors
        include extra fields (e.g. `walletId` on 409 Conflict).

        Broadcast failures that occur after a persisted transaction row is
        created include `transactionId`,

        `failureStage`, and (on broadcast-stage failures) `failureCode`, and
        also set the `x-transaction-id`

        response header. Legacy failures after signing can include
        `signedTransaction` for inspecting

        the already-signed bytes. Sponsored responses never expose signed
        payloads; recover the original

        operation with its tracking ID or original request and idempotency key.


        Common error codes: `INVALID_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`,
        `NOT_FOUND`, `CONFLICT`, `WALLET_ALREADY_EXISTS`,
        `WALLET_ALREADY_CLAIMED`, `RATE_LIMITED`, `INTERNAL_ERROR`.
  responses:
    BadRequest:
      description: Invalid request body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: INVALID_REQUEST
            message: type must be one of EVM, SOLANA, COSMOS, STELLAR, SUI
    Unauthorized:
      description: API key not provided
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: UNAUTHORIZED
            message: secret api key not provided
    Forbidden:
      description: Invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: FORBIDDEN
            message: invalid secret api key
    WebhookSecretIdempotencyConflict:
      description: >
        Conflict on an idempotent secret-issuing request. Returns `CONFLICT`
        while a request with the same `Idempotency-Key` is still in flight, or
        `IDEMPOTENCY_CONFLICT` if the endpoint was deleted or its secret was
        rotated after the key was used.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            requestInFlight:
              summary: Request still being processed
              value:
                code: CONFLICT
                message: >-
                  A request with this idempotency key is currently being
                  processed
            secretRotatedOrDeleted:
              summary: Endpoint deleted or secret rotated
              value:
                code: IDEMPOTENCY_CONFLICT
                message: >-
                  The webhook endpoint was deleted or its secret rotated after
                  this idempotency key was used
    Unprocessable:
      description: Idempotency key reused with a different request body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: UNPROCESSABLE
            message: >-
              Idempotency key has already been used with different request
              parameters
    WebhookConfigRateLimited:
      description: >-
        Webhook configuration rate limit exceeded (10 requests per minute per
        API key)
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until the rate limit window resets
          example: 60
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: RATE_LIMITED
            message: >-
              Rate limit exceeded for webhook configuration. Try again in a
              minute.
    ServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: INTERNAL_ERROR
            message: Internal Server Error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your partner secret key (server-side only)
      x-default: sk_your_secret_key_here

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.