Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@ory/client

Package Overview
Dependencies
Maintainers
3
Versions
381
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ory/client

OpenAPI client for @ory/client

latest
Source
npmnpm
Version
1.22.35
Version published
Weekly downloads
175K
27.58%
Maintainers
3
Weekly downloads
 
Created
Source

@ory/client@v1.22.35

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @ory/client@v1.22.35 --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to https://playground.projects.oryapis.com

ClassMethodHTTP requestDescription
CourierApigetCourierMessageGET /admin/courier/messages/{id}Get a Message
CourierApilistCourierMessagesGET /admin/courier/messagesList Messages
EventsApicreateEventStreamPOST /projects/{project_id}/eventstreamsCreate an event stream for your project.
EventsApideleteEventStreamDELETE /projects/{project_id}/eventstreams/{event_stream_id}Remove an event stream from a project
EventsApilistEventStreamsGET /projects/{project_id}/eventstreamsList all event streams for the project. This endpoint is not paginated.
EventsApisetEventStreamPUT /projects/{project_id}/eventstreams/{event_stream_id}Update an event stream for a project.
FrontendApicreateBrowserLoginFlowGET /self-service/login/browserCreate Login Flow for Browsers
FrontendApicreateBrowserLogoutFlowGET /self-service/logout/browserCreate a Logout URL for Browsers
FrontendApicreateBrowserRecoveryFlowGET /self-service/recovery/browserCreate Recovery Flow for Browsers
FrontendApicreateBrowserRegistrationFlowGET /self-service/registration/browserCreate Registration Flow for Browsers
FrontendApicreateBrowserSettingsFlowGET /self-service/settings/browserCreate Settings Flow for Browsers
FrontendApicreateBrowserVerificationFlowGET /self-service/verification/browserCreate Verification Flow for Browser Clients
FrontendApicreateFedcmFlowGET /self-service/fed-cm/parametersGet FedCM Parameters
FrontendApicreateNativeLoginFlowGET /self-service/login/apiCreate Login Flow for Native Apps
FrontendApicreateNativeRecoveryFlowGET /self-service/recovery/apiCreate Recovery Flow for Native Apps
FrontendApicreateNativeRegistrationFlowGET /self-service/registration/apiCreate Registration Flow for Native Apps
FrontendApicreateNativeSettingsFlowGET /self-service/settings/apiCreate Settings Flow for Native Apps
FrontendApicreateNativeVerificationFlowGET /self-service/verification/apiCreate Verification Flow for Native Apps
FrontendApidisableMyOtherSessionsDELETE /sessionsDisable my other sessions
FrontendApidisableMySessionDELETE /sessions/{id}Disable one of my sessions
FrontendApiexchangeSessionTokenGET /sessions/token-exchangeExchange Session Token
FrontendApigetFlowErrorGET /self-service/errorsGet User-Flow Errors
FrontendApigetLoginFlowGET /self-service/login/flowsGet Login Flow
FrontendApigetRecoveryFlowGET /self-service/recovery/flowsGet Recovery Flow
FrontendApigetRegistrationFlowGET /self-service/registration/flowsGet Registration Flow
FrontendApigetSettingsFlowGET /self-service/settings/flowsGet Settings Flow
FrontendApigetVerificationFlowGET /self-service/verification/flowsGet Verification Flow
FrontendApigetWebAuthnJavaScriptGET /.well-known/ory/webauthn.jsGet WebAuthn JavaScript
FrontendApilistMySessionsGET /sessionsGet My Active Sessions
FrontendApiperformNativeLogoutDELETE /self-service/logout/apiPerform Logout for Native Apps
FrontendApitoSessionGET /sessions/whoamiCheck Who the Current HTTP Session Belongs To
FrontendApiupdateFedcmFlowPOST /self-service/fed-cm/tokenSubmit a FedCM token
FrontendApiupdateLoginFlowPOST /self-service/loginSubmit a Login Flow
FrontendApiupdateLogoutFlowGET /self-service/logoutUpdate Logout Flow
FrontendApiupdateRecoveryFlowPOST /self-service/recoveryUpdate Recovery Flow
FrontendApiupdateRegistrationFlowPOST /self-service/registrationUpdate Registration Flow
FrontendApiupdateSettingsFlowPOST /self-service/settingsComplete Settings Flow
FrontendApiupdateVerificationFlowPOST /self-service/verificationComplete Verification Flow
IdentityApibatchPatchIdentitiesPATCH /admin/identitiesCreate multiple identities
IdentityApicreateIdentityPOST /admin/identitiesCreate an Identity
IdentityApicreateRecoveryCodeForIdentityPOST /admin/recovery/codeCreate a Recovery Code
IdentityApicreateRecoveryLinkForIdentityPOST /admin/recovery/linkCreate a Recovery Link
IdentityApideleteIdentityDELETE /admin/identities/{id}Delete an Identity
IdentityApideleteIdentityCredentialsDELETE /admin/identities/{id}/credentials/{type}Delete a credential for a specific identity
IdentityApideleteIdentitySessionsDELETE /admin/identities/{id}/sessionsDelete & Invalidate an Identity's Sessions
IdentityApidisableSessionDELETE /admin/sessions/{id}Deactivate a Session
IdentityApiextendSessionPATCH /admin/sessions/{id}/extendExtend a Session
IdentityApigetIdentityGET /admin/identities/{id}Get an Identity
IdentityApigetIdentityByExternalIDGET /admin/identities/by/external/{externalID}Get an Identity by its External ID
IdentityApigetIdentitySchemaGET /schemas/{id}Get Identity JSON Schema
IdentityApigetSessionGET /admin/sessions/{id}Get Session
IdentityApilistIdentitiesGET /admin/identitiesList Identities
IdentityApilistIdentitySchemasGET /schemasGet all Identity Schemas
IdentityApilistIdentitySessionsGET /admin/identities/{id}/sessionsList an Identity's Sessions
IdentityApilistSessionsGET /admin/sessionsList All Sessions
IdentityApipatchIdentityPATCH /admin/identities/{id}Patch an Identity
IdentityApiupdateIdentityPUT /admin/identities/{id}Update an Identity
JwkApicreateJsonWebKeySetPOST /admin/keys/{set}Create JSON Web Key
JwkApideleteJsonWebKeyDELETE /admin/keys/{set}/{kid}Delete JSON Web Key
JwkApideleteJsonWebKeySetDELETE /admin/keys/{set}Delete JSON Web Key Set
JwkApigetJsonWebKeyGET /admin/keys/{set}/{kid}Get JSON Web Key
JwkApigetJsonWebKeySetGET /admin/keys/{set}Retrieve a JSON Web Key Set
JwkApisetJsonWebKeyPUT /admin/keys/{set}/{kid}Set JSON Web Key
JwkApisetJsonWebKeySetPUT /admin/keys/{set}Update a JSON Web Key Set
MetadataApigetVersionGET /versionReturn Running Software Version.
OAuth2ApiacceptOAuth2ConsentRequestPUT /admin/oauth2/auth/requests/consent/acceptAccept OAuth 2.0 Consent Request
OAuth2ApiacceptOAuth2LoginRequestPUT /admin/oauth2/auth/requests/login/acceptAccept OAuth 2.0 Login Request
OAuth2ApiacceptOAuth2LogoutRequestPUT /admin/oauth2/auth/requests/logout/acceptAccept OAuth 2.0 Session Logout Request
OAuth2ApiacceptUserCodeRequestPUT /admin/oauth2/auth/requests/device/acceptAccepts a device grant user_code request
OAuth2ApicreateOAuth2ClientPOST /admin/clientsCreate OAuth 2.0 Client
OAuth2ApideleteOAuth2ClientDELETE /admin/clients/{id}Delete OAuth 2.0 Client
OAuth2ApideleteOAuth2TokenDELETE /admin/oauth2/tokensDelete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client
OAuth2ApideleteTrustedOAuth2JwtGrantIssuerDELETE /admin/trust/grants/jwt-bearer/issuers/{id}Delete Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2ApigetOAuth2ClientGET /admin/clients/{id}Get an OAuth 2.0 Client
OAuth2ApigetOAuth2ConsentRequestGET /admin/oauth2/auth/requests/consentGet OAuth 2.0 Consent Request
OAuth2ApigetOAuth2LoginRequestGET /admin/oauth2/auth/requests/loginGet OAuth 2.0 Login Request
OAuth2ApigetOAuth2LogoutRequestGET /admin/oauth2/auth/requests/logoutGet OAuth 2.0 Session Logout Request
OAuth2ApigetTrustedOAuth2JwtGrantIssuerGET /admin/trust/grants/jwt-bearer/issuers/{id}Get Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2ApiintrospectOAuth2TokenPOST /admin/oauth2/introspectIntrospect OAuth2 Access and Refresh Tokens
OAuth2ApilistOAuth2ClientsGET /admin/clientsList OAuth 2.0 Clients
OAuth2ApilistOAuth2ConsentSessionsGET /admin/oauth2/auth/sessions/consentList OAuth 2.0 Consent Sessions of a Subject
OAuth2ApilistTrustedOAuth2JwtGrantIssuersGET /admin/trust/grants/jwt-bearer/issuersList Trusted OAuth2 JWT Bearer Grant Type Issuers
OAuth2ApioAuth2AuthorizeGET /oauth2/authOAuth 2.0 Authorize Endpoint
OAuth2ApioAuth2DeviceFlowPOST /oauth2/device/authThe OAuth 2.0 Device Authorize Endpoint
OAuth2Apioauth2TokenExchangePOST /oauth2/tokenThe OAuth 2.0 Token Endpoint
OAuth2ApipatchOAuth2ClientPATCH /admin/clients/{id}Patch OAuth 2.0 Client
OAuth2ApiperformOAuth2DeviceVerificationFlowGET /oauth2/device/verifyOAuth 2.0 Device Verification Endpoint
OAuth2ApirejectOAuth2ConsentRequestPUT /admin/oauth2/auth/requests/consent/rejectReject OAuth 2.0 Consent Request
OAuth2ApirejectOAuth2LoginRequestPUT /admin/oauth2/auth/requests/login/rejectReject OAuth 2.0 Login Request
OAuth2ApirejectOAuth2LogoutRequestPUT /admin/oauth2/auth/requests/logout/rejectReject OAuth 2.0 Session Logout Request
OAuth2ApirevokeOAuth2ConsentSessionsDELETE /admin/oauth2/auth/sessions/consentRevoke OAuth 2.0 Consent Sessions of a Subject
OAuth2ApirevokeOAuth2LoginSessionsDELETE /admin/oauth2/auth/sessions/loginRevokes OAuth 2.0 Login Sessions by either a Subject or a SessionID
OAuth2ApirevokeOAuth2TokenPOST /oauth2/revokeRevoke OAuth 2.0 Access or Refresh Token
OAuth2ApisetOAuth2ClientPUT /admin/clients/{id}Set OAuth 2.0 Client
OAuth2ApisetOAuth2ClientLifespansPUT /admin/clients/{id}/lifespansSet OAuth2 Client Token Lifespans
OAuth2ApitrustOAuth2JwtGrantIssuerPOST /admin/trust/grants/jwt-bearer/issuersTrust OAuth2 JWT Bearer Grant Type Issuer
OidcApicreateOidcDynamicClientPOST /oauth2/registerRegister OAuth2 Client using OpenID Dynamic Client Registration
OidcApicreateVerifiableCredentialPOST /credentialsIssues a Verifiable Credential
OidcApideleteOidcDynamicClientDELETE /oauth2/register/{id}Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol
OidcApidiscoverOidcConfigurationGET /.well-known/openid-configurationOpenID Connect Discovery
OidcApigetOidcDynamicClientGET /oauth2/register/{id}Get OAuth2 Client using OpenID Dynamic Client Registration
OidcApigetOidcUserInfoGET /userinfoOpenID Connect Userinfo
OidcApirevokeOidcSessionGET /oauth2/sessions/logoutOpenID Connect Front- and Back-channel Enabled Logout
OidcApisetOidcDynamicClientPUT /oauth2/register/{id}Set OAuth2 Client using OpenID Dynamic Client Registration
PermissionApibatchCheckPermissionPOST /relation-tuples/batch/checkBatch check permissions
PermissionApicheckPermissionGET /relation-tuples/check/openapiCheck a permission
PermissionApicheckPermissionOrErrorGET /relation-tuples/checkCheck a permission
PermissionApiexpandPermissionsGET /relation-tuples/expandExpand a Relationship into permissions.
PermissionApipostCheckPermissionPOST /relation-tuples/check/openapiCheck a permission
PermissionApipostCheckPermissionOrErrorPOST /relation-tuples/checkCheck a permission
ProjectApicreateOrganizationPOST /projects/{project_id}/organizationsCreate an Enterprise SSO Organization
ProjectApicreateOrganizationOnboardingPortalLinkPOST /projects/{project_id}/organizations/{organization_id}/onboarding-portal-linksCreate organization onboarding portal link
ProjectApicreateProjectPOST /projectsCreate a Project
ProjectApicreateProjectApiKeyPOST /projects/{project}/tokensCreate project API key
ProjectApideleteOrganizationDELETE /projects/{project_id}/organizations/{organization_id}Delete Enterprise SSO Organization
ProjectApideleteOrganizationOnboardingPortalLinkDELETE /projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}Delete an organization onboarding portal link
ProjectApideleteProjectApiKeyDELETE /projects/{project}/tokens/{token_id}Delete project API key
ProjectApigetOrganizationGET /projects/{project_id}/organizations/{organization_id}Get Enterprise SSO Organization by ID
ProjectApigetOrganizationOnboardingPortalLinksGET /projects/{project_id}/organizations/{organization_id}/onboarding-portal-linksGet the organization onboarding portal links
ProjectApigetProjectGET /projects/{project_id}Get a Project
ProjectApigetProjectMembersGET /projects/{project}/membersGet all members associated with this project
ProjectApilistOrganizationsGET /projects/{project_id}/organizationsList all Enterprise SSO organizations
ProjectApilistProjectApiKeysGET /projects/{project}/tokensList a project's API keys
ProjectApilistProjectsGET /projectsList All Projects
ProjectApipatchProjectPATCH /projects/{project_id}Patch an Ory Network Project Configuration
ProjectApipatchProjectWithRevisionPATCH /projects/{project_id}/revision/{revision_id}Patch an Ory Network Project Configuration based on a revision ID
ProjectApipurgeProjectDELETE /projects/{project_id}Irrecoverably purge a project
ProjectApiremoveProjectMemberDELETE /projects/{project}/members/{member}Remove a member associated with this project
ProjectApisetProjectPUT /projects/{project_id}Update an Ory Network Project Configuration
ProjectApiupdateOrganizationPUT /projects/{project_id}/organizations/{organization_id}Update an Enterprise SSO Organization
ProjectApiupdateOrganizationOnboardingPortalLinkPOST /projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}Update organization onboarding portal link
RelationshipApicheckOplSyntaxPOST /opl/syntax/checkCheck the syntax of an OPL file
RelationshipApicreateRelationshipPUT /admin/relation-tuplesCreate a Relationship
RelationshipApideleteRelationshipsDELETE /admin/relation-tuplesDelete Relationships
RelationshipApigetRelationshipsGET /relation-tuplesQuery relationships
RelationshipApilistRelationshipNamespacesGET /namespacesQuery namespaces
RelationshipApipatchRelationshipsPATCH /admin/relation-tuplesPatch Multiple Relationships
WellknownApidiscoverJsonWebKeysGET /.well-known/jwks.jsonDiscover Well-Known JSON Web Keys
WorkspaceApicreateWorkspacePOST /workspacesCreate a new workspace
WorkspaceApicreateWorkspaceApiKeyPOST /workspaces/{workspace}/tokensCreate workspace API key
WorkspaceApideleteWorkspaceApiKeyDELETE /workspaces/{workspace}/tokens/{token_id}Delete workspace API key
WorkspaceApigetWorkspaceGET /workspaces/{workspace}Get a workspace
WorkspaceApilistWorkspaceApiKeysGET /workspaces/{workspace}/tokensList a workspace's API keys
WorkspaceApilistWorkspaceProjectsGET /workspaces/{workspace}/projectsList all projects of a workspace
WorkspaceApilistWorkspacesGET /workspacesList workspaces the user is a member of
WorkspaceApiupdateWorkspacePUT /workspaces/{workspace}Update an workspace

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basic

  • Type: HTTP basic authentication

bearer

  • Type: Bearer authentication

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://hydra.demo.ory.sh/oauth2/auth
  • Scopes:
  • offline: A scope required when requesting refresh tokens (alias for offline_access)
  • offline_access: A scope required when requesting refresh tokens
  • openid: Request an OpenID Connect ID Token

oryAccessToken

  • Type: Bearer authentication

oryWorkspaceApiKey

  • Type: Bearer authentication

Keywords

axios

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts