Eventleaf How To Guides

How to Create an Eventleaf API Key and Make Your First API Call

The Eventleaf API helps you connect your own apps to Eventleaf. It gives access to events, registrations, sessions, attendance, contact lists, and more. Each request needs an API key. This guide covers how you can create your API key and make your first API call.

  1. Before you start

    1. The right plan. You need the Ultimate plan with the API access add-on.
    2. API turned on for your account. API access is disabled by default. Contact Eventleaf support to enable it for your account.
    3. Owner access. Only the account owner can create API keys. If you don't see API Access in the profile menu, ask your account Owner.
  2. Creating your API key, step by step

    1. Open API Access

    Log in to Eventleaf. Select the profile icon at the top right. Under Account Settings, select API Access.

    Open API Access

    2. Create a new key

    The API page opens. Select the blue + button.

    Create a new key

    Enter a name for your key, for example, "Website integration." Then select CREATE.

    Create a new key - key name

    3. Copy your API key

    A side panel opens with your new key under API Key.

    Allowed IP Addresses is optional. If you leave it blank, the key will work from any IP address.

    If, however, you want to limit the key to your servers, you can enter their IP addresses here, separated by commas.

    Copy your API key

    Important: Treat the key like a password. Anyone who has it can read your event and attendee data. Do not put it in public web pages, emails, or shared documents.

    4. Open the API docs and try a request

    Navigate back to the API Access page from your settings.

    Then, select the Eventleaf API link.

    Open the API docs and try a request

    This opens the API docs at api.eventleaf.com/swagger/ui/index.

    1. Select Events, then select GET /api/v1/events.
    2. Paste your key into the Authorization field.
    3. Select Try it out! Open the API docs and try a request - Try it out

    5. Check the response

    Response Code shows 200. Response Body lists your published events, with each event's ID, name, dates, and registration count.

    Check the response

    The Curl box above shows the same request as a command. Developers can run it from a terminal:

    curl -H "Authorization: YOUR_API_KEY" https://api.eventleaf.com/api/v1/events
  3. Pro tip: Use one key for each application that needs to be integrated

    Create a separate key for each app or integration, and name it after that app.

    If one key leaks, or you stop using an app, you should delete only that key. Here are the steps to delete:

    1. Select ••• next to the key.
    2. Select Delete, then select Delete again to confirm.

    The key stops working at once, and your other apps keep running.

START MANAGING EVENTS

Launch your event registration site in just 2 minutes!

TRY FOR FREE REQUEST A QUOTE REQUEST A DEMO