{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"This endpoint creates an Integration for email event forwarding. Each Integration has a maximum number of allowed Integration instances per user. For example, users can create up to 10 Segment Integrations.","properties":{"body":{"$ref":"#/definitions/IntegrationInput","examples":[{"filters":{"email_events":["click","drop","open","processed","delivered"]},"destination":"Segment","label":"optional label","properties":{"destination_region":"US","write_key":"a123456"}}]}},"required":["body"],"additionalProperties":false,"definitions":{"IntegrationInput":{"type":"object","required":["destination","filters","properties"],"properties":{"destination":{"allOf":[{"$ref":"#/definitions/Destination2"},{"type":"string"}]},"filters":{"type":"object","required":["email_events"],"description":"The configurable filters for SendGrid to destination email event forwarding.","properties":{"email_events":{"type":"array","description":"The possible SendGrid email event types for event forwarding. Specify all the email event types that you would like to forward to the Integration's destination.","items":{"allOf":[{"$ref":"#/definitions/Items1"},{"type":"string"}]}}}},"properties":{"type":"object","description":"The properties of an Integration required to send events to a specific third-party application.","required":["write_key","destination_region"],"properties":{"write_key":{"description":"The write key provided by the Segment Source you'd like to have events forwarded to. Must be between 6 and 51 characters.","type":"string","examples":["1234-abc"]},"destination_region":{"allOf":[{"$ref":"#/definitions/DestinationRegion1"},{"type":"string"}]}}},"label":{"type":"string","default":"Untitled Integration","description":"The nickname for the Integration.","examples":["My New Segment Integration!"]}}},"Destination2":{"type":"string","enum":["Segment"]},"Items1":{"type":"string","enum":["drop","processed","deferred","group_unsubscribe","bounce","delivered","click","unsubscribe","open","group_resubscribe","spamreport","machine_opened"]},"DestinationRegion1":{"type":"string","enum":["EU","US"]}}},"name":"CreateIntegration","id":"sendgrid.integrations.addintegration","example":{"body":{"destination":"Segment","filters":{"email_events":[]},"properties":{"write_key":"1234-abc","destination_region":"EU"}}},"maxRequests":1,"summary":false}}