Developer
Send events from your own integrations to Assembly. This is a great way to track how your customers are interacting with your product.
Developer
You can send events from your own integrations to Assembly.
API Key
You must first create an API Key in Assembly. It is located under “Manage Integrations”, then scroll to the bottom and click “Manage API Keys”.
Here, you can see your existing keys, their names and expiration. You can delete existing ones.
When creating a new API key, the name must be unique in your organization. Once the key has been created, you will be shown a one-time dialog box with your new API key. You should copy this down somewhere safe — we will not show this again.
If you lose your API key, you will need to make a new one.
Sending Events
Here is the API endpoint for sending events to Assembly. The only required field is query:
You can also pass in additional fields, as seen below. These are all optional, but they include the title, information about the user (user_name, user_email, user_image_url, user_username), and the query.
You can also pass in a base64 encoded image if you prefer, or an image URL:
You can attach multiple images by passing in multiple files.
The files field is used to send images to Assembly. You can currently send JPG and PNG images up to 4MB in size.
Here are some of the errors that may be returned:
- 400: Invalid request - missing title, file too large, couldn’t be opened, etc.
- 401: Invalid API Key or expired API Key
- 503: Assembly server error has been logged and our team has been notified
Errors take on the following format in JSON:
Successful responses take on the following format in JSON:
Rate Limiting
There is a rate limit of 30 events per second. If you exceed this, you will receive a 429 response code.
If you need a higher rate, please let us know.