{
"name": "Sample API Key2",
"origin": "http://example.com",
"permissions": "{\"video.read\":true,\"video.write\":false,\"video.delete\":true}",
"expires_at": "2024-05-16T00:00:00Z"
}name: A required string field for the API key name with a length between 2 and 255 charactersorigin : a required field which contains the domainpermissions : A required field which contains all the permissionsexpires_at : A required field which contains the expired time/v1/api-keyscurl --location --request POST 'https://api-staging.tenbyte.io/v1/api-keys' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Rak2 API Key1",
"origin": "http://ahmedraka.com",
"scopes": ["stream", "cdn", "analytics"]
}'{
"result": {
"created_at": "2025-08-20T18:44:42.876556544+06:00",
"expires_at": "2024-05-16T00:00:00Z",
"api_key": "0yZPwHDV99MGG0Yp0oypBi+LqIsamh+GjveWS4VQFvKG17tvPKtJUXVWfhyui+eLh8aJP9dNny6Qb3j8WTmOFHrvYhCYpLHOYcPf9SlC4v9+FXjMyV41uM9rYkk=",
"name": "Raka API Key1",
"type": "organization",
"origin": "http://ahmedraka.com",
"created_by": "fa3173d5-96be-4947-825e-3ad2ea67a649",
"scopes": [
"stream",
"cdn",
"analytics"
],
"id": "99bf2c7b-5379-4ffe-9387-54bdf1d60e21",
"organization_id": "0f39f14e-2bf8-40f3-a6ea-67bc7bb36a1f",
"allow_cors_enabled": true
},
"message": "API key Created Successfully",
"success": true
}