SendGrid · Capability

Twilio SendGrid Webhook Configuration API — Webhook Security

Twilio SendGrid Webhook Configuration API — Webhook Security. 5 operations. Lead operation: Create a new webhook security policy. Self-contained Naftiko capability covering one Sendgrid business surface.

Run with Naftiko SendgridWebhook Security

What You Can Do

POST
Createsecuritypolicy — Create a new webhook security policy
/v1/v3/user/webhooks/security/policies
GET
Listallsecuritypolicies — Retrieve all webhook security policies for your account
/v1/v3/user/webhooks/security/policies
PATCH
Updatesecuritypolicy — Update an existing webhook security policy
/v1/v3/user/webhooks/security/policies/{id}
GET
Getsecuritypolicy — Retrieve a specific webhook security policy
/v1/v3/user/webhooks/security/policies/{id}
DELETE
Deletesecuritypolicy — Delete a specific webhook security policy
/v1/v3/user/webhooks/security/policies/{id}

MCP Tools

create-new-webhook-security-policy

Create a new webhook security policy

retrieve-all-webhook-security-policies

Retrieve all webhook security policies for your account

read-only idempotent
update-existing-webhook-security-policy

Update an existing webhook security policy

idempotent
retrieve-specific-webhook-security-policy

Retrieve a specific webhook security policy

read-only idempotent
delete-specific-webhook-security-policy

Delete a specific webhook security policy

idempotent

Capability Spec

tsg_webhooks_v3-webhook-security.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twilio SendGrid Webhook Configuration API — Webhook Security
  description: 'Twilio SendGrid Webhook Configuration API — Webhook Security. 5 operations. Lead operation: Create a new webhook
    security policy. Self-contained Naftiko capability covering one Sendgrid business surface.'
  tags:
  - Sendgrid
  - Webhook Security
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SENDGRID_API_KEY: SENDGRID_API_KEY
capability:
  consumes:
  - type: http
    namespace: tsg_webhooks_v3-webhook-security
    baseUri: https://api.sendgrid.com
    description: Twilio SendGrid Webhook Configuration API — Webhook Security business capability. Self-contained, no shared
      references.
    resources:
    - name: v3-user-webhooks-security-policies
      path: /v3/user/webhooks/security/policies
      operations:
      - name: createsecuritypolicy
        method: POST
        description: Create a new webhook security policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: listallsecuritypolicies
        method: GET
        description: Retrieve all webhook security policies for your account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v3-user-webhooks-security-policies-id
      path: /v3/user/webhooks/security/policies/{id}
      operations:
      - name: updatesecuritypolicy
        method: PATCH
        description: Update an existing webhook security policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: getsecuritypolicy
        method: GET
        description: Retrieve a specific webhook security policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: deletesecuritypolicy
        method: DELETE
        description: Delete a specific webhook security policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: force
          in: query
          type: boolean
    authentication:
      type: bearer
      token: '{{env.SENDGRID_API_KEY}}'
  exposes:
  - type: rest
    namespace: tsg_webhooks_v3-webhook-security-rest
    port: 8080
    description: REST adapter for Twilio SendGrid Webhook Configuration API — Webhook Security. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v3/user/webhooks/security/policies
      name: v3-user-webhooks-security-policies
      description: REST surface for v3-user-webhooks-security-policies.
      operations:
      - method: POST
        name: createsecuritypolicy
        description: Create a new webhook security policy
        call: tsg_webhooks_v3-webhook-security.createsecuritypolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listallsecuritypolicies
        description: Retrieve all webhook security policies for your account
        call: tsg_webhooks_v3-webhook-security.listallsecuritypolicies
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/user/webhooks/security/policies/{id}
      name: v3-user-webhooks-security-policies-id
      description: REST surface for v3-user-webhooks-security-policies-id.
      operations:
      - method: PATCH
        name: updatesecuritypolicy
        description: Update an existing webhook security policy
        call: tsg_webhooks_v3-webhook-security.updatesecuritypolicy
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getsecuritypolicy
        description: Retrieve a specific webhook security policy
        call: tsg_webhooks_v3-webhook-security.getsecuritypolicy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesecuritypolicy
        description: Delete a specific webhook security policy
        call: tsg_webhooks_v3-webhook-security.deletesecuritypolicy
        with:
          id: rest.id
          force: rest.force
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tsg_webhooks_v3-webhook-security-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twilio SendGrid Webhook Configuration API — Webhook Security. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: create-new-webhook-security-policy
      description: Create a new webhook security policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tsg_webhooks_v3-webhook-security.createsecuritypolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-all-webhook-security-policies
      description: Retrieve all webhook security policies for your account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_webhooks_v3-webhook-security.listallsecuritypolicies
      outputParameters:
      - type: object
        mapping: $.
    - name: update-existing-webhook-security-policy
      description: Update an existing webhook security policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tsg_webhooks_v3-webhook-security.updatesecuritypolicy
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-specific-webhook-security-policy
      description: Retrieve a specific webhook security policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_webhooks_v3-webhook-security.getsecuritypolicy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-specific-webhook-security-policy
      description: Delete a specific webhook security policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: tsg_webhooks_v3-webhook-security.deletesecuritypolicy
      with:
        id: tools.id
        force: tools.force
      outputParameters:
      - type: object
        mapping: $.