SendGrid · Capability

Twilio SendGrid Integrations API — External Integration Endpoints

Twilio SendGrid Integrations API — External Integration Endpoints. 5 operations. Lead operation: ListIntegration. Self-contained Naftiko capability covering one Sendgrid business surface.

Run with Naftiko SendgridExternal Integration Endpoints

What You Can Do

GET
Getintegrationsbyuser — ListIntegration
/v1/v3/marketing/integrations
POST
Addintegration — CreateIntegration
/v1/v3/marketing/integrations
DELETE
Deleteintegration — DeleteBulkIntegration
/v1/v3/marketing/integrations
GET
Findintegrationbyid — GetIntegration
/v1/v3/marketing/integrations/{id}
PATCH
Updateintegration — UpdateIntegration
/v1/v3/marketing/integrations/{id}

MCP Tools

listintegration

ListIntegration

read-only idempotent
createintegration

CreateIntegration

deletebulkintegration

DeleteBulkIntegration

idempotent
getintegration

GetIntegration

read-only idempotent
updateintegration

UpdateIntegration

idempotent

Capability Spec

tsg_integrations_v3-external-integration-endpoints.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Twilio SendGrid Integrations API — External Integration Endpoints
  description: 'Twilio SendGrid Integrations API — External Integration Endpoints. 5 operations. Lead operation: ListIntegration.
    Self-contained Naftiko capability covering one Sendgrid business surface.'
  tags:
  - Sendgrid
  - External Integration Endpoints
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SENDGRID_API_KEY: SENDGRID_API_KEY
capability:
  consumes:
  - type: http
    namespace: tsg_integrations_v3-external-integration-endpoints
    baseUri: https://api.sendgrid.com
    description: Twilio SendGrid Integrations API — External Integration Endpoints business capability. Self-contained, no
      shared references.
    resources:
    - name: v3-marketing-integrations
      path: /v3/marketing/integrations
      operations:
      - name: getintegrationsbyuser
        method: GET
        description: ListIntegration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addintegration
        method: POST
        description: CreateIntegration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteintegration
        method: DELETE
        description: DeleteBulkIntegration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ids
          in: query
          type: array
          description: Comma-delimited Integration IDs for the Integrations to delete.
          required: true
    - name: v3-marketing-integrations-id
      path: /v3/marketing/integrations/{id}
      operations:
      - name: findintegrationbyid
        method: GET
        description: GetIntegration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the Integration you would like to retrieve.
          required: true
      - name: updateintegration
        method: PATCH
        description: UpdateIntegration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the Integration you would like to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SENDGRID_API_KEY}}'
  exposes:
  - type: rest
    namespace: tsg_integrations_v3-external-integration-endpoints-rest
    port: 8080
    description: REST adapter for Twilio SendGrid Integrations API — External Integration Endpoints. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v3/marketing/integrations
      name: v3-marketing-integrations
      description: REST surface for v3-marketing-integrations.
      operations:
      - method: GET
        name: getintegrationsbyuser
        description: ListIntegration
        call: tsg_integrations_v3-external-integration-endpoints.getintegrationsbyuser
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addintegration
        description: CreateIntegration
        call: tsg_integrations_v3-external-integration-endpoints.addintegration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteintegration
        description: DeleteBulkIntegration
        call: tsg_integrations_v3-external-integration-endpoints.deleteintegration
        with:
          ids: rest.ids
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v3/marketing/integrations/{id}
      name: v3-marketing-integrations-id
      description: REST surface for v3-marketing-integrations-id.
      operations:
      - method: GET
        name: findintegrationbyid
        description: GetIntegration
        call: tsg_integrations_v3-external-integration-endpoints.findintegrationbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateintegration
        description: UpdateIntegration
        call: tsg_integrations_v3-external-integration-endpoints.updateintegration
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tsg_integrations_v3-external-integration-endpoints-mcp
    port: 9090
    transport: http
    description: MCP adapter for Twilio SendGrid Integrations API — External Integration Endpoints. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: listintegration
      description: ListIntegration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_integrations_v3-external-integration-endpoints.getintegrationsbyuser
      outputParameters:
      - type: object
        mapping: $.
    - name: createintegration
      description: CreateIntegration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tsg_integrations_v3-external-integration-endpoints.addintegration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: deletebulkintegration
      description: DeleteBulkIntegration
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: tsg_integrations_v3-external-integration-endpoints.deleteintegration
      with:
        ids: tools.ids
      outputParameters:
      - type: object
        mapping: $.
    - name: getintegration
      description: GetIntegration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tsg_integrations_v3-external-integration-endpoints.findintegrationbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: updateintegration
      description: UpdateIntegration
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tsg_integrations_v3-external-integration-endpoints.updateintegration
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.