curl --request POST \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/keys \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": {
"type": "<string>"
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"client_secret": "<string>",
"enabled": true
}
},
"jsonapi": {
"version": "<string>"
}
}Create a new service account key.
curl --request POST \
--url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/keys \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": {
"type": "<string>"
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"client_secret": "<string>",
"enabled": true
}
},
"jsonapi": {
"version": "<string>"
}
}Session token for authentication.
The unique identifier for the organisation.
The unique identifier for the service account.
The service account key to create.
Show child attributes