cURL
curl --request POST \ --url https://api.mediapi.dev/v1/api-keys \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "production" } '
{ "key": "<string>", "name": "<string>" }
Create a new API key. The key is shown only once — store it securely.
"production"
API key created
The API key — save it now, it cannot be retrieved again