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

# Create Inbound Webhook

> Create a hook. The response carries the secret once; the URL holds none.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/teams/{team_id}/hubs/{hub_id}/inbound-webhooks
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/inbound-webhooks:
    post:
      tags:
        - inbound-webhooks
      summary: Create Inbound Webhook
      description: Create a hook. The response carries the secret once; the URL holds none.
      operationId: >-
        inbound_webhooks.post_inbound_webhooks_post_teams_by_team_id_hubs_by_hub_id_inbound_webhooks
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/InboundWebhookCreateEnvelope'
        required: true
      responses:
        '201':
          content:
            application/vnd.api+json:
              schema:
                $ref: >-
                  #/components/schemas/JsonApiResponse_InboundWebhookSecretAttributes_
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    InboundWebhookCreateEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/InboundWebhookCreateResource'
      required:
        - data
      title: InboundWebhookCreateEnvelope
      type: object
    JsonApiResponse_InboundWebhookSecretAttributes_:
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_InboundWebhookSecretAttributes_'
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: JsonApiResponse[InboundWebhookSecretAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    InboundWebhookCreateResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/InboundWebhookCreateAttributes'
        type:
          const: inbound_webhooks
          title: Type
          type: string
      required:
        - type
        - attributes
      title: InboundWebhookCreateResource
      type: object
    JsonApiResource_InboundWebhookSecretAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/InboundWebhookSecretAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[InboundWebhookSecretAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    InboundWebhookCreateAttributes:
      additionalProperties: false
      properties:
        name:
          maxLength: 100
          minLength: 1
          title: Name
          type: string
      required:
        - name
      title: InboundWebhookCreateAttributes
      type: object
    InboundWebhookSecretAttributes:
      description: >-
        Create and rotate only: the one time the secret is shown.


        ``url`` holds no secret. The sender adds ``Authorization: Bearer
        <secret>``.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        enabled:
          title: Enabled
          type: boolean
        header:
          title: Header
          type: string
        last_received_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Received At
        name:
          title: Name
          type: string
        secret:
          title: Secret
          type: string
        token_prefix:
          title: Token Prefix
          type: string
        url:
          title: Url
          type: string
      required:
        - name
        - enabled
        - token_prefix
        - created_at
        - url
        - secret
        - header
      title: InboundWebhookSecretAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

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