GetIntegrationAccount
/api/v1/integrations/{integration}/accounts/{account}Example request
Section titled “Example request”curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://us.oblique.security/api/v1/integrations/{integration}/accounts/{account}"Set OBLIQUE_API_KEY to your API key.
curl \ -H "Authorization: Bearer ${OBLIQUE_API_KEY}" \ "https://eu.oblique.security/api/v1/integrations/{integration}/accounts/{account}"Set OBLIQUE_API_KEY to your API key.
Path parameters
Section titled “Path parameters”namestringrequiredName of the account of the format
integrations/{integration}/accounts/{account}.
Response
Section titled “Response”200IntegrationAccountIntegrationAccount is a profile synced from an integration (such as Slack,
GitHub, Okta or Google). One is recorded for every account the integration
reports, whether or not it maps to a directory user. A user with profiles in
many integrations has one IntegrationAccount per integration.
namestringAssigned by Oblique.
createTimestring (date-time)read-onlyCreate and update timestamps.
updateTimestring (date-time)read-onlydeleteTimestring (date-time)read-onlyThe time when the account record stopped being tracked by Oblique. May differ from the delete time of the account in the external system.
accountIdstringread-onlyThe identifier the integration uses for this account (for example a Slack user ID). It is the account’s stable upsert key within the integration.
userstringread-onlyThe directory user this account maps to, matched on an identity field (such as email) where possible. Empty when no authoritative user matches.
One of
slackSlackread-onlyteamIdstringread-onlyThe Slack team (workspace) the account belongs to.
emailstringread-onlyThe account’s email, used to match a directory user.
isBotbooleanread-onlyWhether the account is a bot.
isDeletedbooleanread-onlyWhether the account is deactivated in Slack (disabled but still visible to the API).
workspaceRolestringread-onlyThe account’s role in the workspace: “primary_owner”, “owner”, “admin” or “member”.
guestTypestringread-onlyEmpty when the account is not a guest.
githubGitHubread-onlyloginstringread-onlyThe GitHub login (username) of the account. A user can change their login at any time, so this is a mutable label rather than an identity: account_id holds the account’s global node ID, which never changes.
emailstringread-onlyThe account’s email, when available. Used to match a directory user.
orgRolestringread-onlyThe account’s role in the organization: “owner” or “member”.
twoFactorAuthenticationbooleanread-onlyWhether the account has two-factor authentication enabled.
samlNameIdstringread-onlyThe SAML name ID of the account, populated when the organization uses SAML SSO (GitHub Enterprise Cloud only).
oktaOktaread-onlyemailstringread-onlyThe account’s primary email in Okta, which the directory user is matched on.
secondEmailstringread-onlyThe account’s secondary email in Okta, when it has one.
googleGoogleread-onlyprimaryEmailstringread-onlyThe account’s primary email in Google Workspace, which the directory user is matched on.
suspendedbooleanread-onlyWhether the account is suspended in Google Workspace.
isAdminbooleanread-onlyWhether the account is a Google Workspace super admin.
cloudflareCloudflareread-onlyemailstringread-onlyThe email the member was invited to the Cloudflare account under, which the directory user is matched on.
twoFactorAuthenticationbooleanread-onlyWhether the member has two-factor authentication enabled.
notionNotionread-onlyemailstringread-onlyThe account’s email in the Notion workspace, which the directory user is matched on.
linearLinearread-onlyemailstringread-onlyThe account’s email in the Linear workspace, which the directory user is matched on.
usernamestringread-onlyThe account’s Linear username, the handle used to mention the account. For example “janedoe”.
claudeConsoleClaudeConsoleread-onlyemailstringread-onlyThe account’s email in the Anthropic organization, which the directory user is matched on.
posthogPostHogread-onlyemailstringread-onlyThe account’s email in the PostHog organization, which the directory user is matched on.
twoFactorAuthenticationbooleanread-onlyWhether the account has two-factor authentication enabled.
bamboohrBambooHRread-onlyemailstringread-onlyThe account’s email in BambooHR. It identifies the directory user only for an account BambooHR holds no employee for, since one it does is matched on employee_id.
BambooHR resolves it in priority order from the employee’s work email, their home email, then the account’s own email.
employeeIdstringread-onlyThe ID of the employee record this login account signs in as. Empty for an account BambooHR holds no employee for, such as one belonging to an outside administrator.
lastLoginTimestring (date-time)read-onlyThe account’s most recent sign-in to BambooHR. Unset for an account that has never signed in.
displayNamestringread-onlyHuman-readable display name for this account, derived from the integration-specific profile.
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 |