ListServiceAccounts
/api/v1/serviceaccountsList the service accounts in this organization, one per API key.
Example request
Section titled “Example request”curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/serviceaccounts"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/serviceaccounts"Set OBLIQUE_API_KEY to your API key.
Query parameters
Section titled “Query parameters”pageSizeinteger (int32)The maximum number of service accounts to return.
pageTokenstringA token to retrieve the next page of results.
showDeletedbooleanWhether to include deleted service accounts in the response.
Response
Section titled “Response”200ListServiceAccountsResponseserviceAccountsServiceAccount[]The service accounts that match the request.
namestringAssigned by Oblique. The name of the service account API object. This is an arbitrary string and does not have to match the user’s name.
displayNamestringrequiredThe display name of the service account.
apiKeystringread-onlyThe API key of the service account. This is only returned once during the
CreateServiceAccountcall, and is not available after that. API keys use the formatobl-svc-[0-9a-fA-F_\-]+.To use a service account, provide it as a bearer token in the Authorization header:
Authorization: Bearer <api_key>.apiKeyOpaquestringread-onlyA safe version of the API key that is always returned and can be displayed to users. This replaces a significant portion of the API key with asterisks, and can be used to identify the service account without using the key itself.
createTimestring (date-time)read-onlyThe time the service account was created.
updateTimestring (date-time)read-onlyThe time the service account was last updated.
deleteTimestring (date-time)read-onlyThe time the service account was deleted, effectively revoking it.
lastUsedTimestring (date-time)read-onlyThe time the service account was successfully used. This does not include requests that are blocked by the service account’s permissions.
creatorKindstringread-onlyThe kind of the creator of the service account.
creatorstringread-onlyThe creator of the service account. Will only be present if
creator_kindisUSER.Format:
users/{user}permissionsstringrequired
nextPageTokenstringA token to retrieve the next page of results.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Missing or invalid API key |
403 | Not allowed for this API key |
404 | Not found |
429 | Too many requests |
500 | Internal server error |