Creates a new stream key alias for an application. Can also be used to overwrite an existing alias.
| Property | Value |
|---|---|
| Method | POST |
| URL | /api/applications/{appName}/aliases |
| Content-Type | application/json |
| Authentication | Bearer Token |
| Parameter | Type | Required | Description |
|---|---|---|---|
appName |
string | Yes | Application name |
| Parameter | Type | Required | Description |
|---|---|---|---|
data.attributes.aliasName |
string | Yes | Alias key (alternative name for the stream) |
data.attributes.streamKey |
string | Yes | Target stream key that the alias points to |
{
"data": {
"attributes": {
"aliasName": "aliasName",
"streamKey": "streamKey"
}
}
}
| Code | Description |
|---|---|
| 201 | Created - Alias successfully created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing token |
| 404 | Not Found - Application does not exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
{
"data": {
"attributes": {
"aliasName": "aliasName",
"streamKey": "streamKey",
"isPermanent": true,
"streamExists": false
}
},
"meta": {
"executionTime": 13,
"generatedAt": 1766063439641
},
"message": "New Alias has been added"
}
| Parameter | Type | Description |
|---|---|---|
data.attributes.aliasName |
string | Alias key (alternative name for the stream) |
data.attributes.streamKey |
string | Target stream key that the alias points to |
data.attributes.isPermanent |
boolean | Indicates if the alias is permanent |
data.attributes.streamExists |
boolean | Indicates if the target stream currently exists |
message |
string | Response status message |
| Parameter | Type | Description |
|---|---|---|
meta.executionTime |
integer | Request processing time in milliseconds |
meta.generatedAt |
integer | Response generation timestamp (Unix timestamp in ms) |
{
"message": "Application not found"
}
| Parameter | Type | Description |
|---|---|---|
message |
string | Human-readable error message |