Twilio SafeList API

The SafeList API from Twilio — 5 operation(s) for safelist.

Operations 9

POST /v1/SafeList/Numbers #
GET /v1/SafeList/Numbers #
DELETE /v1/SafeList/Numbers #
POST /SafeList/Numbers Twilio Add a Number to the Safelist #
GET /SafeList/Numbers/{PhoneNumber} Twilio Check if a Number is Safelisted #
DELETE /SafeList/Numbers/{PhoneNumber} Twilio Remove a Number from the Safelist #
POST /v2/SafeList/Numbers #
GET /v2/SafeList/Numbers/{PhoneNumber} #
DELETE /v2/SafeList/Numbers/{PhoneNumber} #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/twilio-safelist-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twilio-safelist-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio Safe List API
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: https://www.twilio.com/legal/tos
  version: '1.0'
  description: 'Operations tagged SafeList across 3 of this provider''s published API definitions: accounts-openapi-original.yml, twilio-accounts-openapi.yml, verify-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://accounts.twilio.com
- url: https://api.twilio.com/2010-04-01
  description: Twilio REST API v1
- url: https://accounts.twilio.com/v1
  description: Twilio Accounts API v1
- url: https://verify.twilio.com
tags:
- name: SafeList
paths:
  /v1/SafeList/Numbers:
    servers:
    - url: https://accounts.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - phone_number
      pathType: list
      mountName: safelist
    post:
      description: Add a new phone number to SafeList.
      tags:
      - SafeList
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accounts.v1.safelist'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateSafelist
      x-maturity:
      - Beta
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateSafelistRequest'
    get:
      description: Check if a phone number exists in SafeList.
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: query
        description: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 0
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/accounts.v1.safelist'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchSafelist
      x-maturity:
      - Beta
    delete:
      description: Remove a phone number from SafeList.
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: query
        description: The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 0
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteSafelist
      x-maturity:
      - Beta
  /SafeList/Numbers:
    post:
      operationId: createSafelistNumber
      summary: Twilio Add a Number to the Safelist
      description: Add a phone number to the account safelist for verified caller IDs.
      tags:
      - SafeList
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - PhoneNumber
              properties:
                PhoneNumber:
                  type: string
                  description: Phone number in E.164 format
      responses:
        '201':
          description: Number added to safelist
      security:
      - accountSid_authToken: []
    servers:
    - url: https://api.twilio.com/2010-04-01
      description: Twilio REST API v1
    - url: https://accounts.twilio.com/v1
      description: Twilio Accounts API v1
  /SafeList/Numbers/{PhoneNumber}:
    get:
      operationId: fetchSafelistNumber
      summary: Twilio Check if a Number is Safelisted
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Number is safelisted
        '404':
          description: Number not found in safelist
      security:
      - accountSid_authToken: []
    delete:
      operationId: deleteSafelistNumber
      summary: Twilio Remove a Number from the Safelist
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Number removed from safelist
      security:
      - accountSid_authToken: []
    servers:
    - url: https://api.twilio.com/2010-04-01
      description: Twilio REST API v1
    - url: https://accounts.twilio.com/v1
      description: Twilio Accounts API v1
  /v2/SafeList/Numbers:
    servers:
    - url: https://verify.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - phone_number
      pathType: list
      mountName: safelist
    post:
      description: Add a new phone number to SafeList.
      tags:
      - SafeList
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/verify.v2.safelist'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateSafelist
      x-maturity:
      - Beta
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateSafelistRequest'
  /v2/SafeList/Numbers/{PhoneNumber}:
    servers:
    - url: https://verify.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - phone_number
      pathType: instance
      mountName: safelist
    get:
      description: Check if a phone number exists in SafeList.
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: path
        description: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 0
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/verify.v2.safelist'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchSafelist
      x-maturity:
      - Beta
    delete:
      description: Remove a phone number from SafeList.
      tags:
      - SafeList
      parameters:
      - name: PhoneNumber
        in: path
        description: The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 0
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteSafelist
      x-maturity:
      - Beta
components:
  schemas:
    accounts.v1.safelist:
      type: object
      properties:
        sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^GN[0-9a-fA-F]{32}$
          description: The unique string that we created to identify the SafeList resource.
        phone_number:
          type:
          - string
          - 'null'
          description: The phone number in SafeList.
          x-twilio:
            pii:
              handling: standard
              deleteSla: 0
    CreateSafelistRequest:
      type: object
      required:
      - PhoneNumber
      properties:
        PhoneNumber:
          type: string
          description: The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
    verify.v2.safelist:
      type: object
      properties:
        sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^GN[0-9a-fA-F]{32}$
          description: The unique string that we created to identify the SafeList resource.
        phone_number:
          type:
          - string
          - 'null'
          description: The phone number in SafeList.
          x-twilio:
            pii:
              handling: standard
              deleteSla: 0
        url:
          type:
          - string
          - 'null'
          format: uri
          description: The absolute URL of the SafeList resource.
  securitySchemes:
    accountSid_authToken:
      type: http
      scheme: basic
externalDocs:
  description: Twilio Accounts API Documentation
  url: https://www.twilio.com/docs/iam/api/account
x-refined-from:
- accounts-openapi-original.yml
- twilio-accounts-openapi.yml
- verify-openapi-original.yml
x-maturity:
- name: GA
  description: This product is Generally Available.
- name: Beta
  description: PLEASE NOTE that this is a Beta product that is subject to change. Use it with caution.