POST
/
organizations
/
{organizationId}
/
api-keys
curl --request POST \
  --url https://api.concord.tech/privacy-v1/organizations/{organizationId}/api-keys \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "role": "owner",
  "permissions": [
    {
      "organizationId": "<string>",
      "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "role": "owner"
    }
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "apiKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "role": "owner",
  "dateCreated": 123,
  "dateUpdated": 123,
  "permissions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organizationName": "<string>",
      "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "projectName": "<string>",
      "role": "owner"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
string
required

Body

application/json
name
string
Maximum length: 1000
role
enum<string>
Available options:
owner,
admin,
limited,
viewer,
none
permissions
object[]

Response

201
application/json
Default Response
apiKey
string
required
role
enum<string>
required
Available options:
owner,
admin,
limited,
viewer,
none
dateCreated
integer
required
dateUpdated
integer
required
id
string
organizationId
string
projectId
string
name
string
Maximum length: 256
permissions
object[]