Skip to content

maton-ai/api-gateway-skill

api-gateway

Verified

Call third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping provider. Every call goes to an app the user connected. It is not a general-purpose browser or network client, and it cannot reach a service with no Maton connection. It also manages event triggers, webhook destinations that forward event payloads to an external URL until deleted, and local `--exec` handlers that run a script per event - separate, high-risk capabilities beyond a normal API call. Default to read and list calls; every write, connection, trigger, destination, or handler needs explicit user confirmation.

FileKindSize
SKILL.mdskill md55.7 KB
references/active-campaign/README.mdmarkdown12.8 KB
references/acuity-scheduling/README.mdmarkdown11.3 KB
references/airtable/README.mdmarkdown5.8 KB
references/apify/README.mdmarkdown14.6 KB
references/apollo/README.mdmarkdown7.0 KB
references/asana/README.mdmarkdown12.6 KB
references/attio/README.mdmarkdown12.7 KB
references/basecamp/README.mdmarkdown14.9 KB
references/baserow/README.mdmarkdown15.8 KB
references/beehiiv/README.mdmarkdown12.2 KB
references/box/README.mdmarkdown21.8 KB
references/brave-search/README.mdmarkdown13.7 KB
references/brevo/README.mdmarkdown17.5 KB
references/buffer/README.mdmarkdown13.6 KB
references/cal-com/README.mdmarkdown14.9 KB
references/calendly/README.mdmarkdown16.0 KB
references/calendly/triggers.mdmarkdown9.6 KB
references/callrail/README.mdmarkdown11.0 KB
references/chargebee/README.mdmarkdown7.2 KB
references/clickfunnels/README.mdmarkdown17.2 KB
references/clicksend/README.mdmarkdown13.2 KB
references/clickup/README.mdmarkdown15.4 KB
references/clio/README.mdmarkdown11.0 KB
references/clockify/README.mdmarkdown12.2 KB
references/coda/README.mdmarkdown10.7 KB
references/cognito-forms/README.mdmarkdown5.4 KB
references/companycam/README.mdmarkdown14.2 KB
references/confluence/README.mdmarkdown19.0 KB
references/constant-contact/README.mdmarkdown26.7 KB
references/dropbox-business/README.mdmarkdown24.2 KB
references/dropbox/README.mdmarkdown16.8 KB
references/elevenlabs/README.mdmarkdown13.2 KB
references/eventbrite/README.mdmarkdown10.4 KB
references/exa/README.mdmarkdown14.1 KB
references/facebook-page/README.mdmarkdown15.5 KB
references/fal-ai/README.mdmarkdown8.0 KB
references/fastmail/README.mdmarkdown34.0 KB
references/fathom/README.mdmarkdown10.0 KB
references/figma/README.mdmarkdown18.1 KB
references/firebase/README.mdmarkdown11.4 KB
references/firecrawl/README.mdmarkdown17.3 KB
references/fireflies/README.mdmarkdown6.6 KB
references/front/README.mdmarkdown10.6 KB
references/getresponse/README.mdmarkdown15.0 KB
references/github/README.mdmarkdown19.6 KB
references/github/triggers.mdmarkdown63.8 KB
references/google-ads/README.mdmarkdown7.5 KB
references/google-analytics-admin/README.mdmarkdown9.6 KB
references/google-analytics-data/README.mdmarkdown5.7 KB
references/google-apps-script/README.mdmarkdown14.2 KB
references/google-bigquery/README.mdmarkdown13.2 KB
references/google-business-profile/README.mdmarkdown19.8 KB
references/google-calendar/README.mdmarkdown6.8 KB
references/google-classroom/README.mdmarkdown15.7 KB
references/google-contacts/README.mdmarkdown8.2 KB
references/google-docs/README.mdmarkdown4.3 KB
references/google-drive/README.mdmarkdown10.8 KB
references/google-forms/README.mdmarkdown5.2 KB
references/google-mail/README.mdmarkdown7.9 KB
references/google-mail/triggers.mdmarkdown2.1 KB
references/google-meet/README.mdmarkdown5.3 KB
references/google-merchant/README.mdmarkdown19.2 KB
references/google-play/README.mdmarkdown8.3 KB
references/google-search-console/README.mdmarkdown6.2 KB
references/google-sheets/README.mdmarkdown9.0 KB
references/google-slides/README.mdmarkdown8.1 KB
references/google-tag-manager/README.mdmarkdown17.9 KB
references/google-tasks/README.mdmarkdown11.1 KB
references/google-workspace-admin/README.mdmarkdown11.1 KB
references/grafana/README.mdmarkdown10.1 KB
references/granola-mcp/README.mdmarkdown7.2 KB
references/granola-mcp/schemas/get_meeting_transcript.jsonconfig819 B
references/granola-mcp/schemas/get_meetings.jsonconfig1.6 KB
references/granola-mcp/schemas/list_meetings.jsonconfig1.5 KB
references/granola-mcp/schemas/query_granola_meetings.jsonconfig2.1 KB
references/gumroad/README.mdmarkdown13.1 KB
references/highlevel-pit/README.mdmarkdown26.5 KB
references/hubspot/README.mdmarkdown20.3 KB
references/hubspot/triggers.mdmarkdown6.0 KB
references/icloud-mail/README.mdmarkdown21.3 KB
references/instantly/README.mdmarkdown12.6 KB
references/jira/README.mdmarkdown9.3 KB
references/jobber/README.mdmarkdown8.6 KB
references/jotform/README.mdmarkdown7.2 KB
references/kaggle/README.mdmarkdown7.3 KB
references/keap/README.mdmarkdown13.7 KB
references/kibana/README.mdmarkdown10.2 KB
references/kit/README.mdmarkdown10.4 KB
references/klaviyo/README.mdmarkdown36.7 KB
references/lemlist/README.mdmarkdown6.5 KB
references/linear/README.mdmarkdown7.9 KB
references/linear/triggers.mdmarkdown6.5 KB
references/linkedin-community-management/README.mdmarkdown19.6 KB
references/linkedin/README.mdmarkdown22.6 KB
references/mailchimp/README.mdmarkdown18.6 KB
references/mailerlite/README.mdmarkdown15.6 KB
references/mailgun/README.mdmarkdown16.8 KB
references/make/README.mdmarkdown14.3 KB
references/manus/README.mdmarkdown8.1 KB
references/manychat/README.mdmarkdown11.5 KB
references/memelord/README.mdmarkdown10.0 KB
references/microsoft-excel/README.mdmarkdown7.9 KB
references/microsoft-teams/README.mdmarkdown17.0 KB
references/microsoft-to-do/README.mdmarkdown9.2 KB
references/monday/README.mdmarkdown8.0 KB
references/motion/README.mdmarkdown9.9 KB
references/netlify/README.mdmarkdown15.6 KB
references/notion-mcp/README.mdmarkdown14.9 KB
references/notion-mcp/schemas/notion-create-comment.jsonconfig17.6 KB
references/notion-mcp/schemas/notion-create-database.jsonconfig4.6 KB
references/notion-mcp/schemas/notion-create-pages.jsonconfig10.6 KB
references/notion-mcp/schemas/notion-duplicate-page.jsonconfig927 B
references/notion-mcp/schemas/notion-fetch.jsonconfig2.1 KB
references/notion-mcp/schemas/notion-get-comments.jsonconfig1.6 KB
references/notion-mcp/schemas/notion-get-teams.jsonconfig863 B
references/notion-mcp/schemas/notion-get-users.jsonconfig2.3 KB
references/notion-mcp/schemas/notion-move-pages.jsonconfig3.3 KB
references/notion-mcp/schemas/notion-search.jsonconfig4.3 KB
references/notion-mcp/schemas/notion-update-data-source.jsonconfig6.4 KB
references/notion-mcp/schemas/notion-update-page.jsonconfig9.3 KB
references/notion/README.mdmarkdown12.0 KB
references/notion/triggers.mdmarkdown5.2 KB
references/one-drive/README.mdmarkdown16.8 KB
references/one-note/README.mdmarkdown11.3 KB
references/outlook/README.mdmarkdown10.4 KB
references/pdf-co/README.mdmarkdown9.9 KB
references/pipedrive/README.mdmarkdown9.1 KB
references/podio/README.mdmarkdown11.9 KB
references/posthog/README.mdmarkdown12.5 KB
references/quickbooks/README.mdmarkdown13.2 KB
references/quo/README.mdmarkdown11.2 KB
references/reducto/README.mdmarkdown9.4 KB
references/resend/README.mdmarkdown15.8 KB
references/salesforce/README.mdmarkdown14.6 KB
references/sendgrid/README.mdmarkdown16.8 KB
references/sentry/README.mdmarkdown9.8 KB
references/sharepoint/README.mdmarkdown15.6 KB
references/signnow/README.mdmarkdown9.7 KB
references/slack/README.mdmarkdown17.9 KB
references/slack/triggers.mdmarkdown5.6 KB
references/snapchat/README.mdmarkdown14.9 KB
references/squarespace/README.mdmarkdown18.0 KB
references/squareup/README.mdmarkdown21.1 KB
references/stripe/README.mdmarkdown23.6 KB
references/stripe/triggers.mdmarkdown24.6 KB
references/sunsama-mcp/README.mdmarkdown11.1 KB
references/sunsama-mcp/schemas/accept_meeting_invite.jsonconfig827 B
references/sunsama-mcp/schemas/add_subtasks_to_task.jsonconfig663 B
references/sunsama-mcp/schemas/add_task_to_channel.jsonconfig1.7 KB
references/sunsama-mcp/schemas/align_task_with_objective.jsonconfig414 B
references/sunsama-mcp/schemas/append_task_notes.jsonconfig1.3 KB
references/sunsama-mcp/schemas/change_backlog_folder.jsonconfig807 B
references/sunsama-mcp/schemas/create_braindump_task.jsonconfig616 B
references/sunsama-mcp/schemas/create_calendar_event.jsonconfig1.6 KB
references/sunsama-mcp/schemas/create_channel.jsonconfig1.3 KB
references/sunsama-mcp/schemas/create_follow_up_task_from_email.jsonconfig1.9 KB
references/sunsama-mcp/schemas/create_task.jsonconfig580 B
references/sunsama-mcp/schemas/create_weekly_objective.jsonconfig440 B
references/sunsama-mcp/schemas/decline_meeting_invite.jsonconfig695 B
references/sunsama-mcp/schemas/delete_all_incomplete_recurring_task_instances.jsonconfig1.2 KB
references/sunsama-mcp/schemas/delete_calendar_event.jsonconfig1.6 KB
references/sunsama-mcp/schemas/delete_email_thread.jsonconfig674 B
references/sunsama-mcp/schemas/delete_task.jsonconfig915 B
references/sunsama-mcp/schemas/edit_subtask_title.jsonconfig1.7 KB
references/sunsama-mcp/schemas/edit_task_recurrence_rule.jsonconfig448 B
references/sunsama-mcp/schemas/edit_task_time_estimate.jsonconfig418 B
references/sunsama-mcp/schemas/edit_task_title.jsonconfig375 B
references/sunsama-mcp/schemas/get_archived_tasks.jsonconfig162 B
references/sunsama-mcp/schemas/get_backlog_tasks.jsonconfig171 B
references/sunsama-mcp/schemas/get_task_time_estimate.jsonconfig309 B
references/sunsama-mcp/schemas/import_task_from_calendar_event.jsonconfig944 B
references/sunsama-mcp/schemas/list_email_threads.jsonconfig310 B
references/sunsama-mcp/schemas/log_user_feedback.jsonconfig772 B
references/sunsama-mcp/schemas/mark_email_thread_as_read.jsonconfig552 B
references/sunsama-mcp/schemas/mark_subtask_as_completed.jsonconfig409 B
references/sunsama-mcp/schemas/mark_subtask_as_incomplete.jsonconfig411 B
references/sunsama-mcp/schemas/mark_task_as_completed.jsonconfig441 B
references/sunsama-mcp/schemas/mark_task_as_incomplete.jsonconfig282 B
references/sunsama-mcp/schemas/move_calendar_event.jsonconfig2.0 KB
references/sunsama-mcp/schemas/move_task_from_backlog.jsonconfig432 B
references/sunsama-mcp/schemas/move_task_to_backlog.jsonconfig288 B
references/sunsama-mcp/schemas/move_task_to_day.jsonconfig428 B
references/sunsama-mcp/schemas/reorder_tasks.jsonconfig484 B
references/sunsama-mcp/schemas/reposition_task_in_backlog.jsonconfig622 B
references/sunsama-mcp/schemas/restore_task.jsonconfig279 B
references/sunsama-mcp/schemas/schedule_next_call.jsonconfig1.8 KB
references/sunsama-mcp/schemas/search_tasks.jsonconfig292 B
references/sunsama-mcp/schemas/set_calendar_event_allow_task_projections.jsonconfig902 B
references/sunsama-mcp/schemas/set_shutdown_time.jsonconfig508 B
references/sunsama-mcp/schemas/start_task_timer.jsonconfig276 B
references/sunsama-mcp/schemas/stop_task_timer.jsonconfig274 B
references/sunsama-mcp/schemas/timebox_a_task_to_calendar.jsonconfig1.2 KB
references/sunsama-mcp/schemas/toggle_auto_import_events.jsonconfig311 B
references/sunsama-mcp/schemas/unarchive_task.jsonconfig453 B
references/sunsama-mcp/schemas/update_all_incomplete_recurring_task_instances.jsonconfig1.8 KB
references/sunsama-mcp/schemas/update_calendar_preferences.jsonconfig1.1 KB
references/sunsama-mcp/schemas/update_import_event_filters.jsonconfig387 B
references/supabase/README.mdmarkdown10.7 KB
references/systeme/README.mdmarkdown8.7 KB

references/sendgrid/README.md

View on GitHub
# SendGrid

## API Reference

> **Safety:** All write operations (POST, PUT, PATCH, DELETE) require explicit user confirmation before execution. Verify the target resource and intended effect with the user first. See the main [SKILL.md](../../SKILL.md#security--permissions) for full security policy.

**App name:** `sendgrid`
**Upstream base URL:** `api.sendgrid.com`

Replace the upstream base URL with the app name. Everything after the base URL including query strings is kept as-is. Any account-specific part of the base URL and the API credentials are stored in the Maton connection, and the gateway injects both so requests never carry them. For example:

- Upstream: `https://api.sendgrid.com/v3/mail/send`
- Gateway: `https://api.maton.ai/sendgrid/v3/mail/send`

All SendGrid API endpoints follow this pattern:

```
/sendgrid/v3/{resource}
```

### Mail API

#### Send Email

```bash
maton api -X POST '/sendgrid/v3/mail/send' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "personalizations": [
    {
      "to": [{"email": "recipient@example.com", "name": "Recipient"}],
      "subject": "Hello from SendGrid"
    }
  ],
  "from": {"email": "sender@example.com", "name": "Sender"},
  "content": [
    {
      "type": "text/plain",
      "value": "This is a test email."
    }
  ]
}
JSON
```

**With HTML content:**
```bash
maton api -X POST '/sendgrid/v3/mail/send' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "personalizations": [
    {
      "to": [{"email": "recipient@example.com"}],
      "subject": "HTML Email"
    }
  ],
  "from": {"email": "sender@example.com"},
  "content": [
    {
      "type": "text/html",
      "value": "<h1>Hello</h1><p>This is an HTML email.</p>"
    }
  ]
}
JSON
```

**With template:**
```bash
maton api -X POST '/sendgrid/v3/mail/send' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "personalizations": [
    {
      "to": [{"email": "recipient@example.com"}],
      "dynamic_template_data": {
        "first_name": "John",
        "order_id": "12345"
      }
    }
  ],
  "from": {"email": "sender@example.com"},
  "template_id": "d-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
JSON
```

### User Profile API

#### Get User Profile

```bash
maton api '/sendgrid/v3/user/profile'
```

**Response:**
```json
{
  "type": "user",
  "userid": 59796657
}
```

#### Get Account Details

```bash
maton api '/sendgrid/v3/user/account'
```

### Marketing Contacts API

#### List Contacts

```bash
maton api '/sendgrid/v3/marketing/contacts'
```

**Response:**
```json
{
  "result": [],
  "contact_count": 0,
  "_metadata": {
    "self": ".../v3/marketing/contacts"
  }
}
```

#### Search Contacts

```bash
maton api -X POST '/sendgrid/v3/marketing/contacts/search' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "query": "email LIKE '%@example.com%'"
}
JSON
```

#### Add/Update Contacts

```bash
maton api -X PUT '/sendgrid/v3/marketing/contacts' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "contacts": [
    {
      "email": "contact@example.com",
      "first_name": "John",
      "last_name": "Doe"
    }
  ]
}
JSON
```

**Response:**
```json
{
  "job_id": "2387e363-4104-4225-8960-4a5758492351"
}
```

**Note:** Contact operations are asynchronous. Use the job status endpoint to check progress.

#### Get Import Job Status

```bash
maton api '/sendgrid/v3/marketing/contacts/imports/{job_id}'
```

**Note:** `{job_id}` is a placeholder. Replace it with a real value before sending the request.

**Response:**
```json
{
  "id": "2387e363-4104-4225-8960-4a5758492351",
  "status": "pending",
  "job_type": "upsert_contacts",
  "results": {
    "requested_count": 1,
    "created_count": 1
  },
  "started_at": "2026-02-11T11:00:14Z"
}
```

#### Delete Contacts

```bash
maton api '/sendgrid/v3/marketing/contacts?ids=contact_id_1,contact_id_2' -X DELETE
```

#### Get Contact by ID

```bash
maton api '/sendgrid/v3/marketing/contacts/{contact_id}'
```

**Note:** `{contact_id}` is a placeholder. Replace it with a real value before sending the request.

#### Get Contact by Email

```bash
maton api -X POST '/sendgrid/v3/marketing/contacts/search/emails' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "emails": ["contact@example.com"]
}
JSON
```

### Marketing Lists API

#### List All Lists

```bash
maton api '/sendgrid/v3/marketing/lists'
```

**Response:**
```json
{
  "result": [],
  "_metadata": {
    "self": ".../v3/marketing/lists?page_size=100&page_token="
  }
}
```

#### Create List

```bash
maton api -X POST '/sendgrid/v3/marketing/lists' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "My Contact List"
}
JSON
```

**Response:**
```json
{
  "name": "My Contact List",
  "id": "b050f139-4231-47c8-bf32-94ad76376d3b",
  "contact_count": 0,
  "_metadata": {
    "self": ".../v3/marketing/lists/b050f139-4231-47c8-bf32-94ad76376d3b"
  }
}
```

#### Get List by ID

```bash
maton api '/sendgrid/v3/marketing/lists/{list_id}'
```

**Note:** `{list_id}` is a placeholder. Replace it with a real value before sending the request.

#### Update List

```bash
maton api -X PATCH '/sendgrid/v3/marketing/lists/{list_id}' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Updated List Name"
}
JSON
```

**Note:** `{list_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete List

```bash
maton api '/sendgrid/v3/marketing/lists/{list_id}' -X DELETE
```

**Note:** `{list_id}` is a placeholder. Replace it with a real value before sending the request.

#### Add Contacts to List

```bash
maton api -X PUT '/sendgrid/v3/marketing/contacts' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "list_ids": ["list_id"],
  "contacts": [
    {"email": "contact@example.com"}
  ]
}
JSON
```

### Segments API

#### List Segments

```bash
maton api '/sendgrid/v3/marketing/segments'
```

#### Create Segment

```bash
maton api -X POST '/sendgrid/v3/marketing/segments' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Active Users",
  "query_dsl": "email_clicks > 0"
}
JSON
```

#### Get Segment by ID

```bash
maton api '/sendgrid/v3/marketing/segments/{segment_id}'
```

**Note:** `{segment_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete Segment

```bash
maton api '/sendgrid/v3/marketing/segments/{segment_id}' -X DELETE
```

**Note:** `{segment_id}` is a placeholder. Replace it with a real value before sending the request.

### Templates API

#### List Templates

```bash
maton api '/sendgrid/v3/templates'
```

**With generation filter:**
```bash
maton api '/sendgrid/v3/templates?generations=dynamic'
```

#### Create Template

```bash
maton api -X POST '/sendgrid/v3/templates' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "My Template",
  "generation": "dynamic"
}
JSON
```

**Response:**
```json
{
  "id": "d-ffcdb43ed8a04beba48a702e1717ddb5",
  "name": "My Template",
  "generation": "dynamic",
  "updated_at": "2026-02-11 11:00:20",
  "versions": []
}
```

#### Get Template by ID

```bash
maton api '/sendgrid/v3/templates/{template_id}'
```

**Note:** `{template_id}` is a placeholder. Replace it with a real value before sending the request.

#### Update Template

```bash
maton api -X PATCH '/sendgrid/v3/templates/{template_id}' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Updated Template Name"
}
JSON
```

**Note:** `{template_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete Template

```bash
maton api '/sendgrid/v3/templates/{template_id}' -X DELETE
```

**Note:** `{template_id}` is a placeholder. Replace it with a real value before sending the request.

#### Create Template Version

```bash
maton api -X POST '/sendgrid/v3/templates/{template_id}/versions' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Version 1",
  "subject": "{{subject}}",
  "html_content": "<html><body><h1>Hello {{name}}</h1></body></html>",
  "active": 1
}
JSON
```

**Note:** `{template_id}` is a placeholder. Replace it with a real value before sending the request.

**Response:**
```json
{
  "id": "54230a99-1e89-4edf-821d-d4925b40c64b",
  "template_id": "d-ffcdb43ed8a04beba48a702e1717ddb5",
  "active": 1,
  "name": "Version 1",
  "html_content": "<html><body><h1>Hello {{name}}</h1></body></html>",
  "plain_content": "Hello {{name}}",
  "generate_plain_content": true,
  "subject": "{{subject}}",
  "editor": "code",
  "thumbnail_url": "//..."
}
```

### Senders API

#### List Senders

```bash
maton api '/sendgrid/v3/senders'
```

#### Create Sender

```bash
maton api -X POST '/sendgrid/v3/senders' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "nickname": "My Sender",
  "from": {"email": "sender@example.com", "name": "Sender Name"},
  "reply_to": {"email": "reply@example.com", "name": "Reply To"},
  "address": "123 Main St",
  "city": "San Francisco",
  "country": "USA"
}
JSON
```

**Response:**
```json
{
  "id": 8513177,
  "nickname": "My Sender",
  "from": {"email": "sender@example.com", "name": "Sender Name"},
  "reply_to": {"email": "reply@example.com", "name": "Reply To"},
  "address": "123 Main St",
  "city": "San Francisco",
  "country": "USA",
  "verified": {"status": false, "reason": null},
  "updated_at": 1770786031,
  "created_at": 1770786031,
  "locked": false
}
```

**Note:** Sender verification is required before use. Check `verified.status`.

#### Get Sender by ID

```bash
maton api '/sendgrid/v3/senders/{sender_id}'
```

**Note:** `{sender_id}` is a placeholder. Replace it with a real value before sending the request.

#### Update Sender

```bash
maton api -X PATCH '/sendgrid/v3/senders/{sender_id}' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "nickname": "Updated Sender Name"
}
JSON
```

**Note:** `{sender_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete Sender

```bash
maton api '/sendgrid/v3/senders/{sender_id}' -X DELETE
```

**Note:** `{sender_id}` is a placeholder. Replace it with a real value before sending the request.

### Suppressions API

#### Bounces

```bash
# List bounces
maton api '/sendgrid/v3/suppression/bounces'

# Get bounce by email
maton api '/sendgrid/v3/suppression/bounces/{email}'

# Delete bounces
maton api '/sendgrid/v3/suppression/bounces' -X DELETE -H 'Content-Type: application/json' --input - <<'JSON'
{
  "emails": ["bounce@example.com"]
}
JSON
```

**Note:** `{email}` is a placeholder. Replace it with a real value before sending the request.

#### Blocks

```bash
# List blocks
maton api '/sendgrid/v3/suppression/blocks'

# Get block by email
maton api '/sendgrid/v3/suppression/blocks/{email}'

# Delete blocks
maton api '/sendgrid/v3/suppression/blocks' -X DELETE -H 'Content-Type: application/json' --input - <<'JSON'
{
  "emails": ["blocked@example.com"]
}
JSON
```

**Note:** `{email}` is a placeholder. Replace it with a real value before sending the request.

#### Invalid Emails

```bash
# List invalid emails
maton api '/sendgrid/v3/suppression/invalid_emails'

# Delete invalid emails
maton api '/sendgrid/v3/suppression/invalid_emails' -X DELETE -H 'Content-Type: application/json' --input - <<'JSON'
{
  "emails": ["invalid@example.com"]
}
JSON
```

#### Spam Reports

```bash
# List spam reports
maton api '/sendgrid/v3/suppression/spam_reports'

# Delete spam reports
maton api '/sendgrid/v3/suppression/spam_reports' -X DELETE -H 'Content-Type: application/json' --input - <<'JSON'
{
  "emails": ["spam@example.com"]
}
JSON
```

#### Global Unsubscribes

```bash
# List global unsubscribes
maton api '/sendgrid/v3/suppression/unsubscribes'

# Add to global unsubscribes
maton api -X POST '/sendgrid/v3/asm/suppressions/global' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "recipient_emails": ["unsubscribe@example.com"]
}
JSON
```

### Unsubscribe Groups API

#### List Groups

```bash
maton api '/sendgrid/v3/asm/groups'
```

#### Create Group

```bash
maton api -X POST '/sendgrid/v3/asm/groups' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Weekly Newsletter",
  "description": "Weekly newsletter updates"
}
JSON
```

**Response:**
```json
{
  "name": "Weekly Newsletter",
  "id": 122741,
  "description": "Weekly newsletter updates",
  "is_default": false
}
```

#### Get Group by ID

```bash
maton api '/sendgrid/v3/asm/groups/{group_id}'
```

**Note:** `{group_id}` is a placeholder. Replace it with a real value before sending the request.

#### Update Group

```bash
maton api -X PATCH '/sendgrid/v3/asm/groups/{group_id}' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Updated Group Name"
}
JSON
```

**Note:** `{group_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete Group

```bash
maton api '/sendgrid/v3/asm/groups/{group_id}' -X DELETE
```

**Note:** `{group_id}` is a placeholder. Replace it with a real value before sending the request.

#### Add Suppressions to Group

```bash
maton api -X POST '/sendgrid/v3/asm/groups/{group_id}/suppressions' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "recipient_emails": ["user@example.com"]
}
JSON
```

**Note:** `{group_id}` is a placeholder. Replace it with a real value before sending the request.

#### List Suppressions in Group

```bash
maton api '/sendgrid/v3/asm/groups/{group_id}/suppressions'
```

**Note:** `{group_id}` is a placeholder. Replace it with a real value before sending the request.

### Statistics API

#### Get Global Stats

```bash
maton api '/sendgrid/v3/stats?start_date=2026-02-01'
```

**With end date:**
```bash
maton api '/sendgrid/v3/stats?start_date=2026-02-01&end_date=2026-02-28'
```

**Response:**
```json
[
  {
    "date": "2026-02-01",
    "stats": [
      {
        "metrics": {
          "blocks": 0,
          "bounce_drops": 0,
          "bounces": 0,
          "clicks": 0,
          "deferred": 0,
          "delivered": 0,
          "invalid_emails": 0,
          "opens": 0,
          "processed": 0,
          "requests": 0,
          "spam_report_drops": 0,
          "spam_reports": 0,
          "unique_clicks": 0,
          "unique_opens": 0,
          "unsubscribe_drops": 0,
          "unsubscribes": 0
        }
      }
    ]
  }
]
```

#### Category Stats

```bash
maton api '/sendgrid/v3/categories/stats?start_date=2026-02-01&categories=category1,category2'
```

#### Mailbox Provider Stats

```bash
maton api '/sendgrid/v3/mailbox_providers/stats?start_date=2026-02-01'
```

#### Browser Stats

```bash
maton api '/sendgrid/v3/browsers/stats?start_date=2026-02-01'
```

### API Keys

> **Credential management.** API key operations create, modify, or delete long-lived SendGrid credentials that persist independently of the Maton OAuth session. A created key can be used outside this integration. Only invoke when the user explicitly requests API key management. Never log or display created key values.

#### List API Keys

```bash
maton api '/sendgrid/v3/api_keys'
```

**Response:**
```json
{
  "result": [
    {
      "name": "MatonTest",
      "api_key_id": "WJBgv5EKR8y0nn2F8Qfk5w"
    }
  ]
}
```

#### Create API Key

```bash
maton api -X POST '/sendgrid/v3/api_keys' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "New API Key",
  "scopes": ["mail.send", "alerts.read"]
}
JSON
```

#### Get API Key by ID

```bash
maton api '/sendgrid/v3/api_keys/{api_key_id}'
```

**Note:** `{api_key_id}` is a placeholder. Replace it with a real value before sending the request.

#### Update API Key

```bash
maton api -X PATCH '/sendgrid/v3/api_keys/{api_key_id}' -H 'Content-Type: application/json' --input - <<'JSON'
{
  "name": "Updated Key Name"
}
JSON
```

**Note:** `{api_key_id}` is a placeholder. Replace it with a real value before sending the request.

#### Delete API Key

```bash
maton api '/sendgrid/v3/api_keys/{api_key_id}' -X DELETE
```

**Note:** `{api_key_id}` is a placeholder. Replace it with a real value before sending the request.

### Pagination

SendGrid uses token-based pagination for marketing endpoints:

```bash
maton api '/sendgrid/v3/marketing/lists?page_size=100&page_token={token}'
```

**Note:** `{token}` is a placeholder. Replace it with a real value before sending the request.

**Response:**
```json
{
  "result": [...],
  "_metadata": {
    "self": ".../v3/marketing/lists?page_size=100&page_token=",
    "next": ".../v3/marketing/lists?page_size=100&page_token=abc123"
  }
}
```

For suppression endpoints, use `limit` and `offset`:

```bash
maton api '/sendgrid/v3/suppression/bounces?limit=100&offset=0'
```

### Notes

- All requests use JSON content type
- Dates are in YYYY-MM-DD format
- Template IDs for dynamic templates start with `d-`
- Mail send returns 202 Accepted on success (not 200)
- Marketing contact operations are asynchronous - use job status endpoints
- Suppression endpoints support date filtering with `start_time` and `end_time` (Unix timestamps)

### Resources

- [SendGrid API Documentation](https://www.twilio.com/docs/sendgrid/api-reference)
- [Mail Send API](https://www.twilio.com/docs/sendgrid/api-reference/mail-send)
- [Maton CLI Manual](https://cli.maton.ai/manual)
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall