{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can use the API to deflect phone calls to the Intercom Messenger.\nCalling this endpoint will send an SMS with a link to the Messenger to the phone number specified.\n\nIf custom attributes are specified, they will be added to the user or lead's custom data attributes.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/create_phone_switch_request","examples":[{"phone":"+353832345678","custom_attributes":{"issue_type":"Billing","priority":"High"}}]}},"required":[],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"create_phone_switch_request":{"description":"You can create an phone switch","type":["object","null"],"title":"Create Phone Switch Request Payload","properties":{"phone":{"type":"string","description":"Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger.","examples":["+1 1234567890"]},"custom_attributes":{"type":"object","description":"Custom attributes to add to the user or lead's custom data attributes. Values are strings. Numbers and booleans are converted to strings. An empty string, or any array or object value, returns a `422` error with the key `context`. A `null` value is ignored.","additionalProperties":{"oneOf":[{"type":["string","null"]},{"type":"number"},{"type":"boolean"}]},"examples":[{"issue_type":"Billing","priority":"High"}]},"body":{"type":"string","description":"The text of the contact's first message. When you send it, a conversation is created straight away with this text as its first message.","examples":["I need help with my invoice"]},"send_notification":{"type":"boolean","default":true,"description":"Whether to send the SMS with the link to the Messenger. When `false`, no SMS is sent.","examples":[true]},"user_input_phone":{"type":["string","null"],"description":"The phone number as the contact typed it, in national format. When sent with `country`, used in place of `phone` to read the number. `phone` is still required.","examples":["087 234 5678"]},"country":{"type":["string","null"],"description":"The two-letter country code used to read `user_input_phone`. When `country` is `US`, Intercom also looks up the carrier to detect landlines.","examples":["IE"]}},"required":["phone"]}}},"name":"Create a phone Switch","id":"intercom.createphoneswitch","example":{},"maxRequests":1,"summary":false}}