Skip to content

Reference

Clerk

Connect Clerk to Alter Vault for secure API access

Use Clerk credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDclerk
CategoryDeveloper Tools
Credential TypeBearer Token

Log in to the Clerk Dashboard

Log in to the Clerk Dashboard and select the application.

Open API keys

In the left sidebar, open API keys.

Copy the Secret Key

Under Secret keys, copy the Secret Key (starts with sk_live_ or sk_test_).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Clerk

Go to Managed Secrets > Add Provider > Clerk.

Enter credentials

Paste your Secret Key into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://api.clerk.com/v1/users",
grant_id="YOUR_GRANT_ID",
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
GetUserListreadGET/v1/users
CreateUserwritePOST/v1/users
GetUsersCountreadGET/v1/users/count
GetUserreadGET/v1/users/{user_id}
UpdateUserwritePATCH/v1/users/{user_id}
DeleteUserdeleteDELETE/v1/users/{user_id}
UpdateUserMetadatawritePATCH/v1/users/{user_id}/metadata
BanUseradminPOST/v1/users/{user_id}/ban
UnbanUseradminPOST/v1/users/{user_id}/unban
GetOAuthAccessTokenreadGET/v1/users/{user_id}/oauth_access_tokens/{provider}
UsersGetOrganizationMembershipsreadGET/v1/users/{user_id}/organization_memberships
CreateInvitationadmin, sendPOST/v1/invitations
ListInvitationsreadGET/v1/invitations
RevokeInvitationadminPOST/v1/invitations/{invitation_id}/revoke
ListOrganizationsreadGET/v1/organizations
CreateOrganizationwritePOST/v1/organizations
GetOrganizationreadGET/v1/organizations/{organization_id}
UpdateOrganizationwritePATCH/v1/organizations/{organization_id}
DeleteOrganizationdeleteDELETE/v1/organizations/{organization_id}
ListOrganizationMembershipsreadGET/v1/organizations/{organization_id}/memberships
CreateOrganizationMembershipadminPOST/v1/organizations/{organization_id}/memberships
GetSessionListreadGET/v1/sessions
GetSessionreadGET/v1/sessions/{session_id}
RevokeSessionadminPOST/v1/sessions/{session_id}/revoke
CreateSessionTokenadminPOST/v1/sessions/{session_id}/tokens
GetJWKSreadGET/v1/jwks

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.