Create an API client
POST https://{{host}}/identity-management/v3/api-clients
This operation creates a new API client. Optionally, you can automatically assign a credential for the client when you create it. If you choose not to assign the credential automatically, see Create authentication credentials for details.
Body
PARAM
Key | Datatype | Required | Description |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status Created
{
"accessToken": "akaa-eol24zwha6c2huw6-3at564pdmaggqrro",
"actions": {
"delete": true,
"deactivateAll": false,
"edit": true,
"editApis": true,
"editAuth": true,
"editGroups": true,
"editIpAcl": true,
"editSwitchAccount": false,
"lock": true,
"transfer": true,
"unlock": false
},
"activeCredentialCount": 0,
"allowAccountSwitch": false,
"apiAccess": {
"allAccessibleApis": true,
"apis": [
{
"accessLevel": "READ-WRITE",
"apiId": 5101,
"apiName": "Reporting API",
"description": "Control Center reporting API",
"documentationUrl": "https://developer.akamai.com/api/luna/reporting-api/overview.html",
"endPoint": "/reporting-api"
}
]
},
"authorizedUsers": [
"jsmith"
],
"baseURL": "https://akaa-g3bclnoojfn7jvua-ic3mtmz7dwkot4jw.luna-dev.akamaiapis.net",
"canAutoCreateCredential": false,
"clientDescription": "Used to create users across partner accounts.",
"clientId": "2cdgugz2tjbtowmy",
"clientName": "create_new_users",
"clientType": "CLIENT",
"createdBy": "adevi",
"createdDate": "2022-05-23T19:56:27.000Z",
"credentials": [
{
"actions": {
"delete": true,
"activate": true,
"deactivate": false,
"editDescription": true,
"editExpiration": true
},
"clientSecret& Curl curl -X POST 'https://host/identity-management/v3/api-clients?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"allowAccountSwitch":false,"apiAccess":{"allAccessibleApis":false,"apis":[{"accessLevel":"READ-ONLY","apiId":5000,"apiName":"Reporting API","description":"Luna Reporting API","documentationUrl":"https://developer.akamai.com/api/luna/reporting-api/overview.html","endPoint":"/reporting-api"}]},"authorizedUsers":["jsmith"],"canAutoCreateCredential":false,"clientDescription":"Provides access to the reporting data.","clientName":"report_data","clientType":"CLIENT","createCredential":true,"groupAccess":{"cloneAuthorizedUserGroups":false,"groups":[{"groupId":32145,"groupName":"Internet Company","isBlocked":false,"roleDescription":"Sales role","roleId":1,"roleName":"Sales role","subGroups":[{"groupId":32145,"groupName":"Digital Company","isBlocked":false,"parentGroupId":18385,"roleDescription":"Sales role","roleId":2,"roleName":"Sales"}]}]},"ipAcl":{"cidr":["192.0.2.239","192.0.2.20/24"],"enable":true},"notificationEmails":["mrossi@example.com","jsmith@example.com"],"purgeOptions":{"canPurgeByCacheTag":false,"canPurgeByCpcode":true,"cpcodeAccess":{"allCurrentAndNewCpcodes":false,"cpcodes":[7563521,13243546]}}}' ENDPOINTS |