3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

POST /v1/phone — openapi

Set Phone Number

Endpoint

Method: POST

Path: /v1/phone

Servers:

Request Body

{
  "$ref": "#/components/requestBodies/Roblox.AccountInformation.Api.Models.PhoneRequest"
}

Responses

StatusDescription
200OK
4002: Invalid Phone Number 3: Phone Number Already Associated 8: Invalid Phone Number Type
4010: Authorization has been denied for this request.
4030: Token Validation Failed 5: Incorrect Password 10:
4296: Flooded
5000: An unknown error occured.
5031: This feature is currently disabled. Please try again later.
{
  "200": {
    "description": "OK",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/Roblox.Platform.UserPhoneNumberVerification.Models.PendingVerificationResponse"
        }
      },
      "text/json": {
        "schema": {
          "$ref": "#/components/schemas/Roblox.Platform.UserPhoneNumberVerification.Models.PendingVerificationResponse"
        }
      }
    }
  },
  "400": {
    "description": "2: Invalid Phone Number\r\n3: Phone Number Already Associated\r\n8: Invalid Phone Number Type"
  },
  "401": {
    "description": "0: Authorization has been denied for this request."
  },
  "403": {
    "description": "0: Token Validation Failed\r\n5: Incorrect Password\r\n10: "
  },
  "429": {
    "description": "6: Flooded"
  },
  "500": {
    "description": "0: An unknown error occured."
  },
  "503": {
    "description": "1: This feature is currently disabled. Please try again later."
  }
}

Authentication

{
  "security": [
    {
      "roblox-legacy-cookie": []
    }
  ],
  "securitySchemes": {
    "roblox-api-key": {
      "type": "apiKey",
      "description": "A configurable key that allows granular access to Roblox resources. See https://create.roblox.com/docs/cloud/auth/api-keys for more information.",
      "name": "x-api-key",
      "in": "header"
    },
    "roblox-legacy-cookie": {
      "type": "apiKey",
      "description": "A browser cookie that represents the identity of a Roblox user. DO NOT SHARE THIS. Sharing this will allow someone to log in as you and to steal your Robux and items. We do not recommend using cookies to call endpoints. When possible, use API keys with the x-api-key header or OAuth 2.0 instead for authentication.",
      "in": "cookie",
      "name": ".ROBLOSECURITY"
    },
    "roblox-oauth2": {
      "type": "oauth2",
      "description": "Build or authorize apps to access Roblox resources. See https://create.roblox.com/docs/cloud/auth/oauth2-overview for more information.",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://apis.roblox.com/oauth/v1/authorize",
          "tokenUrl": "https://apis.roblox.com/oauth/v1/token",
          "refreshUrl": "https://apis.roblox.com/oauth/v1/token",
          "scopes": {}
        }
      }
    }
  }
}

Complete Operation Definition

{
  "tags": [
    "Accounts"
  ],
  "summary": "Set Phone Number",
  "requestBody": {
    "$ref": "#/components/requestBodies/Roblox.AccountInformation.Api.Models.PhoneRequest"
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/Roblox.Platform.UserPhoneNumberVerification.Models.PendingVerificationResponse"
          }
        },
        "text/json": {
          "schema": {
            "$ref": "#/components/schemas/Roblox.Platform.UserPhoneNumberVerification.Models.PendingVerificationResponse"
          }
        }
      }
    },
    "400": {
      "description": "2: Invalid Phone Number\r\n3: Phone Number Already Associated\r\n8: Invalid Phone Number Type"
    },
    "401": {
      "description": "0: Authorization has been denied for this request."
    },
    "403": {
      "description": "0: Token Validation Failed\r\n5: Incorrect Password\r\n10: "
    },
    "429": {
      "description": "6: Flooded"
    },
    "500": {
      "description": "0: An unknown error occured."
    },
    "503": {
      "description": "1: This feature is currently disabled. Please try again later."
    }
  },
  "servers": [
    {
      "url": "https://accountinformation.roblox.com"
    }
  ],
  "x-roblox-engine-usability": {
    "apiKeyWithHttpService": false
  },
  "security": [
    {
      "roblox-legacy-cookie": []
    }
  ],
  "externalDocs": {
    "url": "https://create.roblox.com/docs/cloud/reference/features/accounts#accountinformation_post_v1_phone"
  }
}