The Eventsforce API allows external applications to query and manipulate data that is stored in Eventsforce. For this to work, you need to create an API role and provide an API key. The API key is a secret password that allows users to access data in your Eventsforce account.

For information on what's included in the API you can read our API documentation for developers.

This article explains how to create an API role and key.

Creating an API role

The first step is to create an API role that will then be assigned to a user. Follow the steps below:

  1. Go to System settings > Security > Roles
  2. Click "+" to create a new role
  3. Enter "API Access" as the description
  4. Click "Save"
  5. Change the 'Show' dropdown to "All" to view all available functions
  6. Search for "API" functions
  7. Select the functions you want to add (generally all the "Read" options)
  8. Use the 'Tools' dropdown and select "Activate..."
  9. Click "Yes"

We recommend starting with the minimum access required, this usually includes the "read" functions, as then changes cannot be pushed back into Eventsforce:

  • API Resource: Attendees - Read
  • API Resource: Events - Read
  • API Resource: Invoices - Read
  • API Resource: People - Read
  • API Resource: Sessions - Read

If you will be using the API with many events, make sure the user has access to the events they will be pulling data from.

If you require your applications to update Eventsforce for example, attendance recording using EF Attendance, you will also need to add the following functions: 

  • API Resource: Attendees - Write
  • API Resource: Invoices - Write
  • API Resource: People - Write

Assigning the API role to a user

The next step is to assign the API role to the user who requires API access. If the user does not exist, add a new user before going forward. Once created, take the below steps:

  1. Go to System settings > Security > Users
  2. Click to 'edit' the user 
  3. Click within the "Roles:" field
  4. Locate your API role and select it to add
  5. Click "Save"

Generating an API key

The final step is to generate an API key. This is a secret password that the API will use to access data in your events. To create the key:

  1. Go to System settings > Security > Users
  2. Click to 'edit' the user 
  3. Click "Generate..." next to 'API key:'
  4. Click "Save"

A new key will be generated that looks something like this:

C82749F75A044C5A9A6B6BF125B1F479

This key must be kept secret, treat it like a password. 

You will be required to add the API key to the other application you are working with such as EF Attendance.

Other articles you may find useful:

Did this answer your question?