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

# Update Webhook Config

> Update the webhook URLs for your organization. Existing signing secret is preserved.

Update your organization's webhook URLs. Set a URL to `null` to disable that webhook type.

```bash cURL theme={null}
curl -X PUT https://api.classet.ai/v2/webhooks \
  -H "X-API-KEY: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "event_webhook_url": "https://your-server.com/webhooks/classet-events",
    "results_webhook_url": "https://your-server.com/webhooks/classet-results"
  }'
```

```json 200 theme={null}
{
  "data": {
    "event_webhook_url": "https://your-server.com/webhooks/classet-events",
    "results_webhook_url": "https://your-server.com/webhooks/classet-results",
    "has_signing_secret": true
  }
}
```

> [!WARNING]
>
> Webhook URLs must use HTTPS and cannot point to internal or private IP addresses (localhost, 10.x.x.x, 192.168.x.x, etc).


## OpenAPI

````yaml PUT /v2/webhooks
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/webhooks:
    put:
      tags:
        - Webhooks
      summary: Update webhook configuration
      description: >-
        Update the webhook URLs for your organization. Existing signing secret
        is preserved.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                event_webhook_url:
                  type: string
                  nullable: true
                  format: uri
                  example: https://example.com/webhooks/classet
                  description: >-
                    URL for event webhooks (candidate created, stage changed,
                    etc). Must use HTTPS. Set to `null` to disable.
                results_webhook_url:
                  type: string
                  nullable: true
                  format: uri
                  example: https://example.com/webhooks/results
                  description: >-
                    URL for results webhooks (call completed with transcript and
                    scores). Must use HTTPS. Set to `null` to disable.
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WebhookConfig'
                required:
                  - data
        '400':
          description: Invalid URL (SSRF protection)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '503':
          description: External mutations are not enabled
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WebhookConfig:
      type: object
      properties:
        event_webhook_url:
          type: string
          nullable: true
          description: >-
            URL receiving candidate and call event notifications. `null` if not
            configured.
        results_webhook_url:
          type: string
          nullable: true
          description: >-
            URL receiving call completion notifications with transcripts and
            scores. `null` if not configured.
        has_signing_secret:
          type: boolean
          description: >-
            Whether a webhook signing secret is configured for verifying
            delivery authenticity.
      required:
        - event_webhook_url
        - results_webhook_url
        - has_signing_secret
      description: Organization webhook configuration
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

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