Aircall Integration Explained
Setting up webhook triggers in Aircall allows you to send real-time data to your external systems based on specific events. This is essential for building custom integrations and automating workflows.
Calendly offers 2 ways to integrate with your external applications.
curl --request GET \ --url https://api.calendly.com/users/me \ --header 'Authorization: Bearer {access_token}' \ --header 'Content-Type: application/json'
{ "resource": { "uri": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA", "name": "John Doe", "slug": "acmesales", "email": "user@example.com", "scheduling_url": "https://calendly.com/acmesales", "timezone": "America/New York", "avatar_url": "https://01234567890.cloudfront.net/uploads/user/avatar/0123456/a1b2c3d4.png", "created_at": "2019-01-02T03:04:05.678123Z", "updated_at": "2019-08-07T06:05:04.321123Z", "current_organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA", "resource_type": "User" } }
curl --request POST \ --url https://api.calendly.com/webhook_subscriptions \ --header 'Authorization: ' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://blah.foo/bar", "events": [ "invitee.created", "invitee.canceled", "invitee_no_show.created", "invitee_no_show.deleted" ], "organization": "https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA", "user": "https://api.calendly.com/users/BBBBBBBBBBBBBBBB", "scope": "user", "signing_key": "5mEzn9C-I28UtwOjZJtFoob0sAAFZ95GbZkqj4y3i0I" }'
curl --request POST --url https://api.calendly.com/webhook_subscriptions --header 'Content-Type: application/json' --header 'authorization: Bearer <your personal access token>' --data '{ "url":"http://yourserverendpoint.com", "events":["invitee.created", "invitee.canceled"], "organization":"https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA", "scope":"organization"}'
//Example: Invitee { "created_at": "2020-11-23T17:51:19.000000Z", "created_by": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA", "event": "invitee.created", "payload": { "cancel_url": "https://calendly.com/cancellations/AAAAAAAAAAAAAAAA", "created_at": "2020-11-23T17:51:18.327602Z", "email": "test@example.com", "event": "https://api.calendly.com/scheduled_events/AAAAAAAAAAAAAAAA", "name": "John Doe", "new_invitee": null, "old_invitee": null, "questions_and_answers": [], "reschedule_url": "https://calendly.com/reschedulings/AAAAAAAAAAAAAAAA", "rescheduled": false, "status": "active", "text_reminder_number": null, "timezone": "America/New_York", "tracking": { "utm_campaign": null, "utm_source": null, "utm_medium": null, "utm_content": null, "utm_term": null, "salesforce_uuid": null }, "updated_at": "2020-11-23T17:51:18.341657Z", "uri": "https://api.calendly.com/scheduled_events/AAAAAAAAAAAAAAAA/invitees/AAAAAAAAAAAAAAAA", "scheduled_event": { "uri": "https://api.calendly.com/scheduled_events/GBGBDCAADAEDCRZ2", "name": "15 Minute Meeting", "meeting_notes_plain": "Internal meeting notes", "meeting_notes_html": "<p>Internal meeting notes</p>", "status": "active", "start_time": "2019-08-24T14:15:22.123456Z", "end_time": "2019-08-24T14:15:22.123456Z", "event_type": "https://api.calendly.com/event_types/GBGBDCAADAEDCRZ2", "location": { "type": "physical", "location": "string", "additional_info": "string" }, "invitees_counter": { "total": 0, "active": 0, "limit": 0 }, "created_at": "2019-01-02T03:04:05.678123Z", "updated_at": "2019-01-02T03:04:05.678123Z", "event_memberships": [ { "user": "https://api.calendly.com/users/GBGBDCAADAEDCRZ2", "user_email": "user@example.com", "user_name": "John Smith" } ], "event_guests": [ { "email": "user@example.com", "created_at": "2019-08-24T14:15:22.123456Z", "updated_at": "2019-08-24T14:15:22.123456Z" } ] } } }