curl --request POST \
--url http://localhost:3000/api-keys/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
'{}curl --request POST \
--url http://localhost:3000/api-keys/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Default Response
The response is of type object.