Download Recording (Token)
Endpoint: /recording/getDownloadToken
This endpoint generates a secure, temporary token that can be used to download a recording file. Instead of providing a direct, permanent link to the recording, this API creates a short-lived, single-use token.
This is a security best practice that prevents unauthorized access and sharing of your recording files. The typical workflow is:
- A user in your application clicks a "Download" button.
- Your backend calls this API to get a token.
- Your application constructs the download URL with the token and redirects the user to it.
The token will expire after a short period, ensuring that the download link cannot be reused or shared.
| Field | Type | Position | Required | Description |
|---|---|---|---|---|
| record_id | string | root | Yes | The ID of the recording you want to download. |
Example Request:
{
"record_id": "7f867cd7-7956-4a17-af46-6ddd4015a497-1761814595173"
}
Response
| Field | Type | Position | Description |
|---|---|---|---|
| status | boolean | root | Indicates if the request was successful. |
| msg | string | root | Response message. |
| status_code | string | root | Response status code. |
| token | string | root | Download token. |
Once you receive the token, you can construct the download URL using the following format:
https://Your-Plug-N-Meet-Server.com/download/recording/<TOKEN HERE>