curl --request POST \
--url https://business.tgo-eg.com/api/v1/api-keys \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Production integration",
"scopes": [
"messages.send",
"messages.read"
],
"expires_in_days": 90
}
'{
"data": {
"id": 123,
"name": "<string>",
"prefix": "<string>",
"scopes": [
"<string>"
],
"status": "active",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"plain_text_key": "tgo_Rm9vQmFyQmF6..."
}curl --request POST \
--url https://business.tgo-eg.com/api/v1/api-keys \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Production integration",
"scopes": [
"messages.send",
"messages.read"
],
"expires_in_days": 90
}
'{
"data": {
"id": 123,
"name": "<string>",
"prefix": "<string>",
"scopes": [
"<string>"
],
"status": "active",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"plain_text_key": "tgo_Rm9vQmFyQmF6..."
}