Events are the individual data points collected by the API. These events are stored in collections.
projectId required | string Example: 5e19426836270c1b1e7b03f2 ID of the project. |
collectionName required | string Example: your_event Name of the event collection to record the event in. |
Key value object of the event body
Event created successfully
Missing or invalid parameters. Error messages will often contain more information to help you figure out what’s wrong.
API key is missing or invalid
The requested resource was not found.
{- "key": "value"
}
{- "created": true
}
projectId required | string Example: 5e19426836270c1b1e7b03f2 ID of the project. |
collectionName required | string Example: your_event Name of the event collection to record the event in. |
data | string URL-encoded AND base-64 encoded event body |
redirect | string A URL to redirect the request toward after the event is recorded. |
Event created successfully
Missing or invalid parameters. Error messages will often contain more information to help you figure out what’s wrong.
API key is missing or invalid
The requested resource was not found.
{- "created": true
}
[- {
- "_id": "5e19426836270c1b1e7b03f2",
- "name": "Test Project",
- "masterKey": "<MASTER_API_KEY>",
- "readKey": "<READ_API_KEY>",
- "writeKey": "<WRITE_API_KEY>",
- "createdAt": "2020-01-11T13:38:05.006Z",
- "updatedAt": "2020-01-11T21:18:56.035Z"
}
]
New project
name required | string Specifies the name of the project |
A project object
Missing or invalid parameters. Error messages will often contain more information to help you figure out what’s wrong.
API key is missing or invalid
The requested resource was not found.
{- "name": "Test Project"
}
{- "_id": "5e19426836270c1b1e7b03f2",
- "name": "Test Project",
- "masterKey": "<MASTER_API_KEY>",
- "readKey": "<READ_API_KEY>",
- "writeKey": "<WRITE_API_KEY>",
- "createdAt": "2020-01-11T13:38:05.006Z",
- "updatedAt": "2020-01-11T21:18:56.035Z"
}
projectId required | string Example: 5e19426836270c1b1e7b03f2 ID of the project. |
A project object
Missing or invalid parameters. Error messages will often contain more information to help you figure out what’s wrong.
API key is missing or invalid
The requested resource was not found.
{- "_id": "5e19426836270c1b1e7b03f2",
- "name": "Test Project",
- "masterKey": "<MASTER_API_KEY>",
- "readKey": "<READ_API_KEY>",
- "writeKey": "<WRITE_API_KEY>",
- "createdAt": "2020-01-11T13:38:05.006Z",
- "updatedAt": "2020-01-11T21:18:56.035Z"
}
projectId required | string Example: 5e19426836270c1b1e7b03f2 ID of the project. |
Updated project
name required | string Specifies the name of the project |
A project object
Missing or invalid parameters. Error messages will often contain more information to help you figure out what’s wrong.
API key is missing or invalid
The requested resource was not found.
{- "name": "Test Project"
}
{- "_id": "5e19426836270c1b1e7b03f2",
- "name": "Test Project",
- "masterKey": "<MASTER_API_KEY>",
- "readKey": "<READ_API_KEY>",
- "writeKey": "<WRITE_API_KEY>",
- "createdAt": "2020-01-11T13:38:05.006Z",
- "updatedAt": "2020-01-11T21:18:56.035Z"
}