# Get Number Request

Get a specific phone number request based on the given order ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Request API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-phonenumberrequestapi/v1/{accountGuid}/numberrequests/{orderId}": {
      "get": {
        "tags": [
          "Number Requests"
        ],
        "summary": "Get Number Request",
        "description": "Get a specific phone number request based on the given order ID.",
        "parameters": [
          {
            "name": "accountGuid",
            "in": "path",
            "description": "Unique identifier of the Logical Account or Voice Account.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "00000000-0000-0000-0000-000000000000"
          },
          {
            "name": "orderId",
            "in": "path",
            "description": "Unique identifier of the number request order, this can be found in your confirmation email or the Voice Management App.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiNumberRequestOrder"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCollection"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiNumberRequest": {
        "title": "Number Request",
        "type": "object",
        "properties": {
          "companyProfileGuid": {
            "type": "string",
            "description": "Unique identifier of the company profile that will be operating the requested numbers.",
            "format": "uuid",
            "example": "11111111-1111-1111-1111-111111111111"
          },
          "quantity": {
            "type": "integer",
            "description": "The requested quantity. **Only required if no requested ranges are supplied.**",
            "format": "int32",
            "example": 25
          },
          "rangeSize": {
            "type": "integer",
            "description": "The size of the range to be requested. **Only required if number blocks are supported. See the order restrictions endpoint for allowed ranges**",
            "format": "int32"
          },
          "countryCode": {
            "type": "string",
            "description": "The country code in ISO 3166-1 alpha-2 format.",
            "nullable": true,
            "example": "NL"
          },
          "numberType": {
            "type": "string",
            "description": "The type of the number, either Local, National, or TollFree.",
            "nullable": true,
            "example": "Local"
          },
          "areaCode": {
            "type": "string",
            "description": "The area code (prefix) of the requested numbers.",
            "nullable": true,
            "example": "76"
          },
          "city": {
            "type": "string",
            "description": "City to request numbers for. Required when area code is not provided.\r\nIf the area code is also provided, this will be used in combination with area code.",
            "nullable": true,
            "example": "Breda"
          },
          "region": {
            "type": "string",
            "description": "Region to request numbers for. Only required for NANPA.",
            "nullable": true,
            "example": "Alabama"
          },
          "comment": {
            "type": "string",
            "description": "Additional comment for customers to for example add a distribution group or IP address.",
            "nullable": true,
            "example": "Room for extra comments or requests regarding this phone number request"
          },
          "callbackUrl": {
            "type": "string",
            "description": "URL that we'll send a POST request to when the status of the request has been updated. The body of this post request will contain the entire number request order including the updated status.",
            "nullable": true,
            "example": "https://www.example.com"
          }
        },
        "additionalProperties": false,
        "description": "Request model for requesting new phone numbers."
      },
      "ApiNumberRequestOrder": {
        "title": "Number Request Order",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier",
            "format": "uuid",
            "example": "11111111-1111-1111-1111-111111111111"
          },
          "orderId": {
            "type": "integer",
            "description": "The order id",
            "format": "int32",
            "example": 250101001
          },
          "createdOn": {
            "type": "string",
            "description": "Date and time of creation",
            "format": "date-time",
            "example": "2025-01-01T00:00:00"
          },
          "requestData": {
            "$ref": "#/components/schemas/ApiNumberRequest"
          },
          "status": {
            "type": "string",
            "description": "The status key of the phone number request",
            "nullable": true,
            "example": "InProgress"
          },
          "comment": {
            "type": "string",
            "description": "Optional comment describing the reason for the current status of the phone number request",
            "nullable": true,
            "example": "Your request is currently in progress."
          }
        },
        "additionalProperties": false,
        "description": "Request model for a phone number request order"
      },
      "Error": {
        "title": "Error",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorCollection": {
        "title": "Error Collection",
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 244,
      "2": 3,
      "3": 143,
      "4": 59,
      "5": 172,
      "6": 25,
      "7": 0,
      "8": 32,
      "9": 139,
      "10": 61,
      "11": 227
    }
  }
}
```