{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can add a specific subscription to a contact. In Intercom, we have two different subscription types based on user consent - opt-out and opt-in:\n\n  1.Attaching a contact to an opt-out subscription type will opt that user out from receiving messages related to that subscription type.\n\n  2.Attaching a contact to an opt-in subscription type will opt that user in to receiving messages related to that subscription type.\n\nThis will return a subscription type model for the subscription type that was added to the contact.\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},"path":{"type":"object","properties":{"contact_id":{"type":"string","examples":["63a07ddf05a32042dffac965"],"description":"The unique identifier for the contact which is given by Intercom"}},"required":["contact_id"],"additionalProperties":false},"body":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The unique identifier for the subscription which is given by Intercom","examples":["37846"]},"consent_type":{"type":"string","description":"Ignored. Whether the contact is opted in or out is decided by the subscription type's own `consent_type`, not by this value.","examples":["opt_in"]}},"examples":[{"id":106,"consent_type":"opt_in"}]}},"required":["path"],"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"]}}},"name":"Add subscription to a contact","id":"intercom.attachsubscriptiontypetocontact","example":{"path":{"contact_id":"63a07ddf05a32042dffac965"}},"maxRequests":1,"summary":false}}