API reference
Exports
import {
SelfClient, // the API client
SelfWebhooks, // webhook signature verification
SelfApiError, // thrown on a non-2xx API response
SelfValidationError, // thrown on invalid input / unknown payload
WebhookVerificationError, // thrown on a bad webhook signature
} from '@selfxyz/enterprise-sdk';
import type {
CreateSessionInput, // argument to sessions.create()
Session, // return of sessions.create()
SessionDetail, // return of sessions.get()
WebhookEvent, // discriminated union of webhook events
VerificationCompletedPayload, // the verification.completed payload
} from '@selfxyz/enterprise-sdk';SelfClient
SelfClientsessions.create(input)
sessions.create(input)Field
Type
Required
Notes
Field
Type
Notes
sessions.get(id)
sessions.get(id)Field
Type
Notes
SelfWebhooks
SelfWebhooksSelfWebhooks.verify(payload, headers, secret)
SelfWebhooks.verify(payload, headers, secret)Parameter
Notes
Errors
SelfApiError
SelfApiErrorProperty
Type
Notes
SelfValidationError
SelfValidationErrorProperty
Type
Notes
WebhookVerificationError
WebhookVerificationErrorRelated
Last updated