SendGrid · Capability

Twilio SendGrid Suppressions API — Unsubscribe Groups

Twilio SendGrid Suppressions API — Unsubscribe Groups. 5 operations. Lead operation: Create a new suppression group. Self-contained Naftiko capability covering one Sendgrid business surface.

Run with Naftiko SendgridUnsubscribe Groups

What You Can Do

POST
Creatasmgroup — Create a new suppression group
/v1/v3/asm/groups
GET
Listasmgroup — Retrieve all suppression groups associated with the user.
/v1/v3/asm/groups
GET
Getasmgroup — Get information on a single suppression group.
/v1/v3/asm/groups/{group-id}
PATCH
Updateasmgroup — Update a suppression group.
/v1/v3/asm/groups/{group-id}
DELETE
Deleteasmgroup — Delete a Suppression Group
/v1/v3/asm/groups/{group-id}

MCP Tools

create-new-suppression-group

Create a new suppression group

retrieve-all-suppression-groups-associated

Retrieve all suppression groups associated with the user.

read-only idempotent
get-information-single-suppression-group

Get information on a single suppression group.

read-only idempotent
update-suppression-group

Update a suppression group.

idempotent
delete-suppression-group

Delete a Suppression Group

idempotent

Capability Spec

tsg_suppressions_v3-unsubscribe-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twilio SendGrid Suppressions API — Unsubscribe Groups
  description: 'Twilio SendGrid Suppressions API — Unsubscribe Groups. 5 operations. Lead operation: Create a new suppression
    group. Self-contained Naftiko capability covering one Sendgrid business surface.'
  tags:
  - Sendgrid
  - Unsubscribe Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SENDGRID_API_KEY: SENDGRID_API_KEY
capability:
  consumes:
  - type: http
    namespace: tsg_suppressions_v3-unsubscribe-groups
    baseUri: https://api.sendgrid.com
    description: Twilio SendGrid Suppressions API — Unsubscribe Groups business capability. Self-contained, no shared references.
    resources:
    - name: v3-asm-groups
      path: /v3/asm/groups
      operations:
      - name: creatasmgroup
        method: POST
        description: Create a new suppression group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: listasmgroup
        method: GET
        description: Retrieve all suppression groups associated with the user.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: integer
          description: The ID of the suppression group(s) you want to retrieve.
    - name: v3-asm-groups-group_id
      path: /v3/asm/groups/{group_id}
      operations:
      - name: getasmgroup
        method: GET
        description: Get information on a single suppression group.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateasmgroup
        method: PATCH
        description: Update a suppression group.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteasmgroup
        method: DELETE
        description: Delete a Suppression Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.SENDGRID_API_KEY}}'
  exposes:
  - type: rest
    namespace: tsg_suppressions_v3-unsubscribe-groups-rest
    port: 8080
    description: REST adapter for Twilio SendGrid Suppressions API — Unsubscribe Groups. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v3/asm/groups
      name: v3-asm-groups
      description: REST surface for v3-asm-groups.
      operations:
      - method: POST
        name: creatasmgroup
        description: Create a new suppression group
        call: tsg_suppressions_v3-unsubscribe-groups.creatasmgroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listasmgroup
        description: Retrieve all suppression groups associated with the user.
        call: tsg_suppressions_v3-unsubscribe-groups.listasmgroup
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/asm/groups/{group-id}
      name: v3-asm-groups-group-id
      description: REST surface for v3-asm-groups-group_id.
      operations:
      - method: GET
        name: getasmgroup
        description: Get information on a single suppression group.
        call: tsg_suppressions_v3-unsubscribe-groups.getasmgroup
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateasmgroup
        description: Update a suppression group.
        call: tsg_suppressions_v3-unsubscribe-groups.updateasmgroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteasmgroup
        description: Delete a Suppression Group
        call: tsg_suppressions_v3-unsubscribe-groups.deleteasmgroup
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tsg_suppressions_v3-unsubscribe-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twilio SendGrid Suppressions API — Unsubscribe Groups. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: create-new-suppression-group
      description: Create a new suppression group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tsg_suppressions_v3-unsubscribe-groups.creatasmgroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-all-suppression-groups-associated
      description: Retrieve all suppression groups associated with the user.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_suppressions_v3-unsubscribe-groups.listasmgroup
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-information-single-suppression-group
      description: Get information on a single suppression group.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_suppressions_v3-unsubscribe-groups.getasmgroup
      outputParameters:
      - type: object
        mapping: $.
    - name: update-suppression-group
      description: Update a suppression group.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tsg_suppressions_v3-unsubscribe-groups.updateasmgroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-suppression-group
      description: Delete a Suppression Group
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: tsg_suppressions_v3-unsubscribe-groups.deleteasmgroup
      outputParameters:
      - type: object
        mapping: $.