Issue access profile credential in organization
Issues a short-lived credential from an access profile, optionally narrowed by scope. Every issue is recorded in the Data Access audit log.
Issues a short-lived credential from an access profile, optionally narrowed by scope. Every issue is recorded in the Data Access audit log.
bearerAuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$accessProfile*stringThe access profile's ID.
^acp_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
scope?Narrows the credential below the access profile's config, as its provider reads it; unset, the credential reaches all that the profile does. GitHub's: {"repositories": ["api"], "permissions": {"contents": "read"}}, either field of which may be left out.
OK
application/json- response
accessProfile*stringResource name of the access profile that issued this credential.
credential*Short-lived credential fields.
expireTime*stringWhen the credential expires.
date-timehint*stringGuidance on what the credential reaches and how tools use it.
provider*stringProvider type, such as providers/github.
scope*Effective scope reached by the credential.
curl -X POST 'https://api.kosem.ai/v1/organizations/string/accessProfiles/string/credentials' \
-H 'Content-Type: application/json' \
-d '{}'{
"accessProfile": "string",
"credential": {
"property1": "string",
"property2": "string"
},
"expireTime": "2019-08-24T14:15:22Z",
"hint": "string",
"provider": "string",
"scope": {
"property1": null,
"property2": null
}
}