Stytch Country Code Allowlist API

The Country Code Allowlist API from Stytch — 2 operation(s) for country code allowlist.

Operations 4

GET /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/sms Getallowedsmscountrycodes #
POST /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/sms Setallowedsmscountrycodes #
GET /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/whatsapp Getallowedwhatsappcountrycodes #
POST /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/whatsapp Setallowedwhatsappcountrycodes #

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/stytch-country-code-allowlist-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

stytch-country-code-allowlist-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stytch Management Country Code Allowlist API
  description: Stytch's Management API for programmatic workspace actions — projects, environments, secrets, redirect URLs, RBAC policies, JWT templates, email templates, event log streaming, trusted token profiles, public tokens, and SDK configuration.
  version: 1.0.0
  contact:
    name: Stytch Support
    url: https://stytch.com/docs
    email: support@stytch.com
servers:
- url: https://management.stytch.com
  description: Production server
security:
- basicAuth: []
tags:
- name: Country Code Allowlist
paths:
  /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/sms:
    get:
      summary: Getallowedsmscountrycodes
      operationId: pwa_country_code_allowlist_v3_GetAllowedSMSCountryCodes
      tags:
      - Country Code Allowlist
      description: GetAllowedSMSCountryCodes retrieves the allowed SMS country codes for an environment.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_country_code_allowlist_v3_GetAllowedSMSCountryCodesResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    post:
      summary: Setallowedsmscountrycodes
      operationId: pwa_country_code_allowlist_v3_SetAllowedSMSCountryCodes
      tags:
      - Country Code Allowlist
      description: SetAllowedSMSCountryCodes sets the allowed SMS country codes for an environment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_country_code_allowlist_v3_SetAllowedSMSCountryCodesRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_country_code_allowlist_v3_SetAllowedSMSCountryCodesResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/environments/:environment_slug/allowed_country_codes/whatsapp:
    get:
      summary: Getallowedwhatsappcountrycodes
      operationId: pwa_country_code_allowlist_v3_GetAllowedWhatsAppCountryCodes
      tags:
      - Country Code Allowlist
      description: GetAllowedWhatsAppCountryCodes retrieves the allowed WhatsApp country codes for an environment.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_country_code_allowlist_v3_GetAllowedWhatsAppCountryCodesResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    post:
      summary: Setallowedwhatsappcountrycodes
      operationId: pwa_country_code_allowlist_v3_SetAllowedWhatsAppCountryCodes
      tags:
      - Country Code Allowlist
      description: SetAllowedWhatsAppCountryCodes sets the allowed WhatsApp country codes for an environment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_country_code_allowlist_v3_SetAllowedWhatsAppCountryCodesRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_country_code_allowlist_v3_SetAllowedWhatsAppCountryCodesResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
components:
  schemas:
    pwa_country_code_allowlist_v3_SetAllowedSMSCountryCodesResponse:
      type: object
      properties:
        request_id:
          type: string
        country_codes:
          type: array
          items:
            type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - country_codes
      - status_code
    pwa_country_code_allowlist_v3_SetAllowedSMSCountryCodesRequest:
      type: object
      properties:
        country_codes:
          type: array
          items:
            type: string
      description: Request type
      required:
      - country_codes
    pwa_country_code_allowlist_v3_GetAllowedWhatsAppCountryCodesResponse:
      type: object
      properties:
        request_id:
          type: string
        country_codes:
          type: array
          items:
            type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - country_codes
      - status_code
    pwa_country_code_allowlist_v3_SetAllowedWhatsAppCountryCodesResponse:
      type: object
      properties:
        request_id:
          type: string
        country_codes:
          type: array
          items:
            type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - country_codes
      - status_code
    pwa_country_code_allowlist_v3_SetAllowedWhatsAppCountryCodesRequest:
      type: object
      properties:
        country_codes:
          type: array
          items:
            type: string
      description: Request type
      required:
      - country_codes
    pwa_country_code_allowlist_v3_GetAllowedSMSCountryCodesResponse:
      type: object
      properties:
        request_id:
          type: string
        country_codes:
          type: array
          items:
            type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - country_codes
      - status_code
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic