{
    "info": {
        "name": "ONCORR API v1",
        "description": "Generated from https://oncorr.info/api/docs/openapi.json. Set the \"token\" variable to an API token (onc_\u2026) \u2014 a sandbox key is safest for trying things out.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "_postman_id": "oncorr-api-v1"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://oncorr.info/api/v1"
        },
        {
            "key": "token",
            "value": "onc_your_token_here"
        }
    ],
    "item": [
        {
            "name": "Account",
            "item": [
                {
                    "name": "Who am I",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/me",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "me"
                            ],
                            "variable": []
                        },
                        "description": "Shows the token name, owner, scopes and rate limit. Works with any scope.\n\nRequired scope: `events:read`."
                    }
                }
            ]
        },
        {
            "name": "Events",
            "item": [
                {
                    "name": "List events",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events"
                            ],
                            "variable": []
                        },
                        "description": "Required scope: `events:read`."
                    }
                },
                {
                    "name": "Get an event",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `events:read`."
                    }
                }
            ]
        },
        {
            "name": "Registrations",
            "item": [
                {
                    "name": "List registrations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/registrations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "registrations"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `registrations:read`."
                    }
                },
                {
                    "name": "Create a registration",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/registrations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "registrations"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Finds the person by e-mail (or creates their profile) and registers them. Fires the `registration.created` webhook when the status is `registered`.\n\nRequired scope: `registrations:write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"first_name\": \"Ann\",\n    \"last_name\": \"Lee\",\n    \"email\": \"ann.lee@example.com\",\n    \"company\": \"Acme\",\n    \"attendee_type\": \"Attendee\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a registration",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/registrations/:registration",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "registrations",
                                ":registration"
                            ],
                            "variable": [
                                {
                                    "key": "registration",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `registrations:read`."
                    }
                },
                {
                    "name": "Update or cancel a registration",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/registrations/:registration",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "registrations",
                                ":registration"
                            ],
                            "variable": [
                                {
                                    "key": "registration",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Send only the fields you want to change. `status: cancelled` cancels the registration.\n\nRequired scope: `registrations:write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"attendee_type\": \"Speaker\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "List check-ins",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/checkins",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "checkins"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `registrations:read`."
                    }
                },
                {
                    "name": "Flight status of guests",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/flights",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "flights"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Live (or simulated) status of the guests' tracked flights.\n\nRequired scope: `registrations:read`."
                    }
                }
            ]
        },
        {
            "name": "Invitations",
            "item": [
                {
                    "name": "List invitations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/invitations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "invitations"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `invitations:write`."
                    }
                },
                {
                    "name": "Invite a person",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/invitations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "invitations"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Adds the person to the invitation list with a personal invitation code. The invitation e-mail is sent from ONCORR's invitation screens.\n\nRequired scope: `invitations:write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"first_name\": \"Ann\",\n    \"last_name\": \"Lee\",\n    \"email\": \"ann.lee@example.com\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Reports",
            "item": [
                {
                    "name": "Event summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/events/:event/reports/summary",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "events",
                                ":event",
                                "reports",
                                "summary"
                            ],
                            "variable": [
                                {
                                    "key": "event",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `reports:read`."
                    }
                }
            ]
        },
        {
            "name": "Webhooks",
            "item": [
                {
                    "name": "List webhook subscriptions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/webhooks",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhooks"
                            ],
                            "variable": []
                        },
                        "description": "Required scope: `webhooks:manage`."
                    }
                },
                {
                    "name": "Subscribe a webhook",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/webhooks",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhooks"
                            ],
                            "variable": []
                        },
                        "description": "Delivers the chosen events to `url` as signed JSON (see X-Oncorr-Signature). The receiving host must be allowed by an ONCORR administrator. Sandbox keys must send the `event_id` of a [DEMO] event.\n\nRequired scope: `webhooks:manage`."
                    }
                },
                {
                    "name": "Unsubscribe a webhook",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/webhooks/:webhook",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "webhooks",
                                ":webhook"
                            ],
                            "variable": [
                                {
                                    "key": "webhook",
                                    "value": "1"
                                }
                            ]
                        },
                        "description": "Required scope: `webhooks:manage`."
                    }
                }
            ]
        }
    ]
}