{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can create a new contact (ie. user or lead).\n\nRequires the `read_write_users` or `write_users_companies` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"body":{"oneOf":[{"$ref":"#/definitions/create_contact_request"}],"examples":[{"email":"joebloggs@intercom.io"}]}},"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_contact_request":{"description":"Payload to create a contact","type":"object","title":"Create Contact Request Payload","properties":{"role":{"type":"string","description":"The role of the contact. `lead` creates a lead; any other value creates a user.","examples":["user"]},"external_id":{"type":"string","description":"A unique identifier for the contact which is given to Intercom","examples":["625e90fc55ab113b6d92175f"]},"email_verified":{"type":["boolean","null"],"description":"Whether the contact has proved they own this email address, for example through a confirmation link or one-time code you sent. Send it together with `email`. `email_verified` without `email` is rejected.\n\nChanging a contact's email resets it to not verified. Intercom reuses leads with a verified email when an inbound email, conversation or ticket matches the address.","examples":[true]},"email":{"type":"string","description":"The contacts email","examples":["jdoe@example.com"]},"phone":{"type":["string","null"],"description":"The contacts phone","examples":["+353871234567"]},"name":{"type":["string","null"],"description":"The contacts name","examples":["John Doe"]},"avatar":{"type":["string","null"],"description":"An image URL containing the avatar of a contact","examples":["https://www.example.com/avatar_image.jpg"]},"signed_up_at":{"type":["integer","null"],"format":"date-time","description":"(Unix timestamp in seconds) The time specified for when a contact signed up.","examples":[1571672154]},"last_seen_at":{"type":["integer","null"],"format":"date-time","description":"(Unix timestamp in seconds) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).","examples":[1571672154]},"owner_id":{"type":["string","null"],"description":"The id of an admin that has been assigned account ownership of the contact","examples":["321"]},"unsubscribed_from_emails":{"type":["boolean","null"],"description":"Whether the contact is unsubscribed from emails","examples":[true]},"sms_consent":{"type":"boolean","description":"Whether the contact has consented to receive SMS messages.","examples":[false]},"unsubscribed_from_sms":{"type":"boolean","description":"Whether the contact is unsubscribed from SMS messages.","examples":[false]},"language_override":{"type":["string","null"],"description":"A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change.","examples":["en"]},"custom_attributes":{"type":["object","null"],"description":"The custom attributes which are set for the contact","examples":[{"paid_subscriber":true,"monthly_spend":155.5,"team_mates":1}]}},"anyOf":[{"required":["email"],"title":"Create contact with email"},{"required":["external_id"],"title":"Create contact with external_id"},{"required":["role"],"title":"Create contact with role"}]}}},"name":"Create contact","id":"intercom.createcontact","example":{},"maxRequests":1,"summary":false}}