The streamGo API - Managing Users
Managing Users via the API
The streamGo API allows you to create, register, update and delete users programmatically.
This is particularly useful when integrating streamGo with external registration systems, CRMs or other applications.
All requests require authentication using your organisation's API key.
Base URL: https://events.streamgo.live/api/v1
1. Creating and Registering Users
POST /users
Creates a user and registers them for one or more events.
You can provide standard registration details, additional custom fields and an option to send a confirmation email.
Request Body
{
"data": {
"name": "John",
"surname": "Smith",
"email": "john.smith@example.com",
"custom_inputs": {
"job_title": "Managing Director",
"company": "Acme"
}
},
"email_confirmation": true,
"events": [1, 2, 3]
}
Request Fields
| Field | Description |
|---|---|
data |
Object containing the user's registration details |
name |
User's first name |
surname |
User's surname |
email |
User's email address |
custom_inputs |
Optional object containing additional event-specific registration fields |
email_confirmation |
Boolean controlling whether a confirmation email is sent |
events |
Array of event IDs to register the user for |
Custom Registration Fields
The custom_inputs object is optional.
You only need to include additional registration fields when those fields are marked as required for the event.
For example, if your event requires a job title and company name during registration, include these within custom_inputs:
{
"custom_inputs": {
"job_title": "Managing Director",
"company": "Acme"
}
}
If your event does not require any additional registration fields, you can omit custom_inputs entirely.
cURL Example
curl --request POST \
'https://events.streamgo.live/api/v1/users' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"name": "John",
"surname": "Smith",
"email": "john.smith@example.com",
"custom_inputs": {
"job_title": "Managing Director",
"company": "Acme"
}
},
"email_confirmation": true,
"events": [1, 2, 3]
}'
Successful Response
HTTP 201 Created
{
"result": "success",
"data": [
{
"event_id": 1,
"user_id": 4,
"magic_link": "https://events.streamgo.live/magic-link/be3b4e9c-6e37-49be-8391-99b77dbdcb8c/login?perm=1"
}
{
"event_id": 2,
"user_id": 5,
"magic_link": "https://events.streamgo.live/magic-link/be3b4e9c-6e37-49be-8391-99b77dbdcb8c/login?perm=1"
},
{
"event_id": 3,
"user_id": 6,
"magic_link": "https://events.streamgo.live/magic-link/be3b4e9c-6e37-49be-8391-99b77dbdcb8c/login?perm=1"
}
]
}
The response contains registration details for each event:
| Field | Description |
|---|---|
event_id |
ID of the event the user has been registered for |
user_id |
ID of the registered user |
magic_link |
Authentication URL for accessing the event without manually signing in |
Using the Magic Link
The magic_link value can be used to direct newly registered users to their events without requiring them to sign in manually.
For example, your integration could use the returned URL to provide a direct link to the event from an external website, registration confirmation page or email.
When registering users for multiple events, the API returns a separate registration entry for each event.
Treat magic links as sensitive authentication credentials and share them only with their intended recipients.
For information about generating authentication links for existing users, see Magic Link Authentication.
2. Updating an Existing User
PUT /users/{user_id}
Updates the registration details of an existing user.
Replace {user_id} with the numeric ID of the user you want to update.
Request Body
{
"data": {
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"custom_inputs": {
"job_title": "Managing Director",
"company": "Acme"
}
}
}
The custom_inputs object is optional unless additional registration fields are marked as required for the event.
cURL Example
curl --request PUT \
'https://events.streamgo.live/api/v1/users/4' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"name": "John",
"surname": "Doe",
"email": "john.doe@example.com",
"custom_inputs": {
"job_title": "Managing Director",
"company": "Acme"
}
}
}'
Successful Response
HTTP 200 OK
{
"result": "success",
"data": {
"updated": { "user_id": 4, "event_id": 1 }
}
}
The response confirms which user and event registration was updated.
3. Deleting an Existing User
DELETE /users/{user_id}
Deletes an existing user using their numeric user ID.
No request body is required.
cURL Example
curl --request DELETE \ 'https://events.streamgo.live/api/v1/users/5' \ --header 'Authorization: Bearer YOUR_API_KEY'
Successful Response
HTTP 200 OK
{
"result": "success",
"data": {
"deleted": { "user_id": 5, "event_id": 1 }
}
}
The response identifies the user and event registration that was deleted.
Error Handling
The create, update and delete endpoints document the following error response:
HTTP 400 Bad Request
{ "result": "error", "message": "Malformed or incomplete request." }
Check that your request contains correctly formatted JSON, valid parameters and the appropriate registration information.
Need Help?
For assistance with API registration, user management or custom fields, please contact the streamGo support team.