Twilio SafeList API

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

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/SafeList/Numbers Add a phone number to SafeList (v1 endpoint) · Create safelist #
Ask an LLM
“Is the v1 SafeList endpoint still usable for adding a number?”
“With the v1 API, what do I send to safelist one of my phone numbers?”
Tell an agent
Using the v1 endpoint, add {phone_number} to SafeList.
Safelist number {phone_number} through the v1 SafeList API.
GET /v1/SafeList/Numbers Check a number on SafeList (v1 endpoint) · Fetch safelist #
Ask an LLM
“On the v1 SafeList endpoint, where the number goes in the query string, is a phone number safelisted?”
“Can the older v1 SafeList API tell me whether a number is protected from fraud blocking?”
Tell an agent
Using the v1 endpoint, check whether {phone_number} is on SafeList by passing it as a query parameter.
Query v1 SafeList for number {phone_number}.
DELETE /v1/SafeList/Numbers Remove a phone number from SafeList (v1 endpoint) · Delete safelist #
Ask an LLM
“On the v1 SafeList endpoint, how do I remove a number passed as a query parameter?”
“Can the older v1 SafeList API take a number back off the list?”
Tell an agent destructive · confirm first
Using the v1 endpoint, remove {phone_number} from SafeList by passing it as a query parameter.
Delete number {phone_number} from the v1 SafeList.
POST /SafeList/Numbers Safelist a number (legacy unversioned endpoint) · Twilio Add a Number to the Safelist #
Ask an LLM
“On the older unversioned path, how do I add a verified caller ID to the account safelist?”
“Can the legacy safelist endpoint still accept new numbers?”
Tell an agent
Via the legacy unversioned endpoint, add {phone_number} to the account safelist.
Using the older safelist path, safelist verified caller ID {phone_number}.
GET /SafeList/Numbers/{PhoneNumber} Check a safelisted number (legacy endpoint) · Twilio Check if a Number is Safelisted #
Ask an LLM
“Through the older unversioned path, is a number on the safelist?”
“Can the legacy endpoint tell me whether a caller ID is safelisted?”
Tell an agent
Via the legacy unversioned endpoint, check whether {phone_number} is safelisted.
Using the older safelist path, look up {phone_number}.
DELETE /SafeList/Numbers/{PhoneNumber} Unsafelist a number (legacy unversioned endpoint) · Twilio Remove a Number from the Safelist #
Ask an LLM
“Through the older unversioned path, how do I remove a number from the safelist?”
“Can the legacy safelist endpoint delete an entry?”
Tell an agent destructive · confirm first
Via the legacy unversioned endpoint, remove {phone_number} from the safelist.
Using the older safelist path, delete safelisted number {phone_number}.
POST /v2/SafeList/Numbers Add a phone number to SafeList · Create safelist #
Ask an LLM
“How do I protect one of my own numbers from being blocked by fraud guard?”
“Can I add a phone number to SafeList through the v2 endpoint?”
Tell an agent
Add {phone_number} to SafeList using the v2 endpoint.
Put phone number {phone_number} on the v2 SafeList so it is never blocked.
GET /v2/SafeList/Numbers/{PhoneNumber} Check whether a number is on SafeList · Fetch safelist #
Ask an LLM
“Is a given phone number already on my v2 SafeList?”
“Can I confirm a number was safelisted before sending verification to it?”
Tell an agent
Check whether {phone_number} is on the v2 SafeList.
Look up {phone_number} in SafeList with the v2 endpoint.
DELETE /v2/SafeList/Numbers/{PhoneNumber} Remove a phone number from SafeList · Delete safelist #
Ask an LLM
“How do I take a number off SafeList with the v2 API?”
“What if a safelisted number should be subject to fraud checks again?”
Tell an agent destructive · confirm first
Remove {phone_number} from SafeList using the v2 endpoint.
Take phone number {phone_number} off the v2 SafeList.

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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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'
      summary: Create safelist
      x-summary-source: derived
    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
      summary: Fetch safelist
      x-summary-source: derived
    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
      summary: Delete safelist
      x-summary-source: derived
  /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'
      summary: Create safelist
      x-summary-source: derived
  /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
      summary: Fetch safelist
      x-summary-source: derived
    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
      summary: Delete safelist
      x-summary-source: derived
components:
  schemas:
    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).
    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
    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.