How to create a participant with a speaker or moderator role

How to create a participant with a speaker or moderator role

Use this guide when you need to register a participant and assign them a speaker or moderator role for the event in the same request.


Prerequisites

  • Your API key

  • The event_id of the target event


Request — assign as speaker

Bash
curl -X POST "https://your-event-domain.com/api/v2/account/set" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "first_name=Jane" \
  -F "last_name=Doe" \
  -F "email=jane.doe@example.com" \
  -F "speaker=true"

Request — assign as moderator

Bash
curl -X POST "https://your-event-domain.com/api/v2/account/set" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "first_name=Jane" \
  -F "last_name=Doe" \
  -F "email=jane.doe@example.com" \
  -F "moderator=true"

Request — assign as both speaker and moderator

Bash
curl -X POST "https://your-event-domain.com/api/v2/account/set" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "first_name=Jane" \
  -F "last_name=Doe" \
  -F "email=jane.doe@example.com" \
  -F "speaker=true" \
  -F "moderator=true"

Response

JSON
{
  "code": 200,
  "errors": null,
  "data": {
    "id": 12351,
    "email": "jane.doe@example.com",
    "status": "created",
    "external_id": null,
    "speaker": true,
    "moderator": false,
    "errors": []
  },
  "response_id": "1700000000.12351"
}

The speaker and moderator fields appear in the response only when they were explicitly set in the request, confirming the roles were assigned.


Notes

  • Speaker and moderator are event-level roles — they apply to this specific event only

  • To remove a role at a later point, send speaker=false or moderator=false in an update request

  • Roles can be assigned at creation or added via a subsequent update call