# Create Phone Switch Request Payload

> This is a subset of the full specification, limited to the `create_phone_switch_request` schema.
>
> You can find the full specification here: /_bundle/docs/references/@2.15/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.15'
  description: This is a subset of the full specification, limited to the `create_phone_switch_request` schema. Components more than 3 `$ref` hops away are not included.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
paths: {}
components:
  schemas:
    datetime:
      oneOf:
        - title: string
          type: string
          format: date-time
          description: A date and time following the ISO8601 notation.
        - title: integer
          type: integer
          description: A date and time as Unix timestamp notation.
    create_phone_switch_request:
      description: You can create an phone switch
      type: object
      title: Create Phone Switch Request Payload
      nullable: true
      properties:
        phone:
          type: string
          description: Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger.
          example: +1 1234567890
        custom_attributes:
          $ref: '#/components/schemas/custom_attributes'
      required:
        - phone
    custom_attributes:
      title: Custom Attributes
      type: object
      description: An object containing the different custom attributes associated to the conversation as key-value pairs. For relationship attributes the value will be a list of custom object instance models. System-defined attributes such as "CX Score rating" and "CX Score explanation" may also be included.
      additionalProperties:
        anyOf:
          - type: string
          - type: integer
          - $ref: '#/components/schemas/datetime'
          - $ref: '#/components/schemas/custom_object_instance_list'
      example:
        paid_subscriber: true
        monthly_spend: 155.5
        team_mates: 9
        start_date_iso8601: '2023-03-04T09:46:14Z'
        end_date_timestamp: 1677923174
        CX Score rating: 4
        CX Score explanation: The conversation was resolved quickly and the customer expressed satisfaction with the outcome.
    custom_object_instance_list:
      title: Custom Object Instances
      type: object
      description: The list of associated custom object instances for a given reference attribute on the parent object.
      properties:
        type:
          type: string
          example: order.list
        instances:
          type: array
          description: The list of associated custom object instances for a given reference attribute on the parent object.
          items:
            $ref: '#/components/schemas/custom_object_instance'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
