Skip to main content
GET /unified/iam/me
Returns information about the connection currently making the request: how it authenticates, what scopes or permissions it holds, and when it was last used.

Authentication

Requires Authorization: Basic {base64_encoded_api_key} and x-account-id: {account_id}. See authentication.

Response

Returns an IamCredentials object.
FieldTypeDescription
namestringHuman-readable name of the credential set
auth_typeenumHow the connection authenticates: oauth, api_key, or service_user
scopesstring[]OAuth scopes granted to this connection. Empty when auth_type is not oauth.
permissionsIamPermission[]Effective permissions for this connection — what it can do in the provider
last_accessed_atstring (ISO 8601)When this connection last made an API call

Example

curl --request GET \
  --url 'https://api.stackone.com/unified/iam/me' \
  --header 'accept: application/json' \
  --header 'authorization: Basic {base64_encoded_api_key}' \
  --header 'x-account-id: {account_id}'

Example Response

{
  "data": {
    "name": "Acme Corp Production",
    "auth_type": "oauth",
    "scopes": [
      "channels:read",
      "users:read"
    ],
    "permissions": [
      {
        "id": "perm_01abc",
        "name": "Read users",
        "type": "read",
        "scopes": [{ "resource_type": "user" }]
      }
    ],
    "last_accessed_at": "2026-03-25T09:12:00.000Z"
  }
}

Errors

StatusMeaning
401Unauthorized — invalid or missing API key
422Provider does not support this endpoint