# Stytch Docs: API & SDK reference

## API & SDK reference

- [API & SDK reference / B2B API (974 pages)](https://stytch.com/docs/_llms/api-and-sdk-reference/b2-b-api.md): Multi-tenant Authentication
- [API & SDK reference / Consumer API (569 pages)](https://stytch.com/docs/_llms/api-and-sdk-reference/consumer-api.md): Consumer Authentication

### Fraud API

#### Fraud API

- [Fraud and Risk Prevention API Reference](https://stytch.com/docs/api-reference/fraud/api/overview.md)

##### Endpoints

- [Fingerprint Lookup](https://stytch.com/docs/api-reference/fraud/api/fingerprint-lookup.md): Lookup the associated fingerprint for the `telemetry_id` returned from the `GetTelemetryID()` function. Learn more about the different fingerprint types and verdicts in our [DFP guide](https://stytch.com/docs/fraud/guides/device-fingerprinting/overview).
- [Fingerprint Lookup (Deprecated)](https://stytch.com/docs/api-reference/fraud/api/fingerprint-lookup-deprecated.md)
- [Set Rule](https://stytch.com/docs/api-reference/fraud/api/set-rule.md): Set a rule for a particular `visitor_id`, `browser_id`, `visitor_fingerprint`, `browser_fingerprint`, `hardware_fingerprint`, `network_fingerprint`, `cidr_block`, `asn`, or `country_code`. This is helpful in cases where you want to allow or block a specific user or fingerprint. You should be careful…
- [Get Rule](https://stytch.com/docs/api-reference/fraud/api/get-rule.md): Get all rules that have been set for your project.
- [Set Verdict Reason Override](https://stytch.com/docs/api-reference/fraud/api/set-verdict-reason-override.md): Use this endpoint to override the action returned for a specific verdict reason during a fingerprint lookup. For example, Stytch Device Fingerprinting returns a `CHALLENGE` verdict action by default for the verdict reason `VIRTUAL_MACHINE`. You can use this endpoint to override that reason to return…
- [Get Verdict Reasons](https://stytch.com/docs/api-reference/fraud/api/get-verdict-reasons.md): Get the list of verdict reasons returned by the Stytch Device Fingerprinting product along with their default actions and any overrides you may have defined. This is not an exhaustive list of verdict reasons, but it contains all verdict reasons that you may set an override on.
- [Check Email Risk](https://stytch.com/docs/api-reference/fraud/api/check-email-risk.md): Detect suspicious emails for trust & safety and fraud prevention use cases

##### Resources

###### Errors

- [Errors overview](https://stytch.com/docs/api-reference/fraud/api/errors/overview.md)
- [Error object](https://stytch.com/docs/api-reference/fraud/api/errors/error-object.md)
- [400](https://stytch.com/docs/api-reference/fraud/api/errors/400.md): Reference for Stytch API Bad Request errors
- [401](https://stytch.com/docs/api-reference/fraud/api/errors/401.md): Reference for Stytch API Unauthorized errors
- [403](https://stytch.com/docs/api-reference/fraud/api/errors/403.md): Reference for Stytch API Forbidden errors
- [404](https://stytch.com/docs/api-reference/fraud/api/errors/404.md): Reference for Stytch API Not Found errors
- [499](https://stytch.com/docs/api-reference/fraud/api/errors/499.md): Reference for Stytch API Client Closed Request errors
- [500](https://stytch.com/docs/api-reference/fraud/api/errors/500.md): Reference for Stytch API Internal Server Error errors
- [503](https://stytch.com/docs/api-reference/fraud/api/errors/503.md): Reference for Stytch API Service Unavailable errors

### PWA API

#### Programmatic Workspace Actions API

##### v3

- [Programmatic Workspace Actions API](https://stytch.com/docs/api-reference/pwa/api/v3/overview.md)
- [PWA API Limits](https://stytch.com/docs/api-reference/pwa/api/v3/limits.md)

###### Projects

- [Project Object](https://stytch.com/docs/api-reference/pwa/api/v3/projects/project-object.md)
- [Get All Projects](https://stytch.com/docs/api-reference/pwa/api/v3/projects/get-all-projects.md): GetAll retrieves all projects in a workspace.
- [Create Project](https://stytch.com/docs/api-reference/pwa/api/v3/projects/create-project.md): Create creates a project, including both a live and test environment.
- [Get Project](https://stytch.com/docs/api-reference/pwa/api/v3/projects/get-project.md): Get retrieves a project.
- [Update Project](https://stytch.com/docs/api-reference/pwa/api/v3/projects/update-project.md): Update updates the project.
- [Delete Project](https://stytch.com/docs/api-reference/pwa/api/v3/projects/delete-project.md): Delete deletes a project and all of its environments.

###### Environments

- [Environment Object](https://stytch.com/docs/api-reference/pwa/api/v3/environments/environment-object.md)
- [Get All Environments](https://stytch.com/docs/api-reference/pwa/api/v3/environments/get-all-environments.md): Retrieves all environments in a project.
- [Create Environment](https://stytch.com/docs/api-reference/pwa/api/v3/environments/create-environment.md): Creates a new environment in a project.
- [Get Environment](https://stytch.com/docs/api-reference/pwa/api/v3/environments/get-environment.md): Retrieves an environment.
- [Update Environment](https://stytch.com/docs/api-reference/pwa/api/v3/environments/update-environment.md): Updates the environment.
- [Delete Environment](https://stytch.com/docs/api-reference/pwa/api/v3/environments/delete-environment.md): Deletes an environment.

###### Metrics

- [Metrics Object](https://stytch.com/docs/api-reference/pwa/api/v3/metrics/metrics-object.md)
- [Get Metrics](https://stytch.com/docs/api-reference/pwa/api/v3/metrics/get-metrics.md): Retrieves metrics for an environment.

###### Public Tokens

- [Public Tokens Object](https://stytch.com/docs/api-reference/pwa/api/v3/public-tokens/public-tokens-object.md)
- [Get All Public Tokens](https://stytch.com/docs/api-reference/pwa/api/v3/public-tokens/get-all-public-tokens.md): GetAll retrieves all the active public tokens defined for an environment.
- [Create Public Token](https://stytch.com/docs/api-reference/pwa/api/v3/public-tokens/create-public-token.md): Create creates a new public token for an environment.
- [Get Public Token](https://stytch.com/docs/api-reference/pwa/api/v3/public-tokens/get-public-token.md): Get retrieves a public token for an environment.
- [Delete Public Token](https://stytch.com/docs/api-reference/pwa/api/v3/public-tokens/delete-public-token.md): Delete deletes a public token for an environment.

###### Secrets

- [Secrets Object](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/secrets-object.md)
- [Masked Secrets Object](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/masked-secrets-object.md)
- [Get All Secrets](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/get-all-secrets.md): GetAll retrieves all secrets for an environment.
- [Create Secret](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/create-secret.md): Create creates a secret for an environment. The response contains the full secret value, which will not be exposed in future Get requests.
- [Get Secret](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/get-secret.md): Get retrieves a secret for an environment.
- [Delete Secret](https://stytch.com/docs/api-reference/pwa/api/v3/secrets/delete-secret.md): Delete deletes a secret for an environment.

###### Email Templates

- [Email Template Object](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/email-template-object.md)
- [Get All Email Templates](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/get-all-email-templates.md): GetAll retrieves all email templates for a project.
- [Create Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/create-email-template.md): Create creates an email template for a project.
- [Get Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/get-email-template.md): Get retrieves an email template for a project.
- [Update Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/update-email-template.md): Update updates an email template for a project.
- [Delete Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/delete-email-template.md): Delete deletes an email template for a project.
- [Get Default Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/get-default-email-template.md): GetDefault retrieves the default email template for a specific template type in a project.
- [Set Default Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/set-default-email-template.md): SetDefault sets the default email template for a specific template type in a project.
- [Unset Default Email Template](https://stytch.com/docs/api-reference/pwa/api/v3/email-templates/unset-default-email-template.md): UnsetDefault removes the default email template for a specific template type in a project.

###### Redirect URLs

- [Redirect URL Object](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/redirect-url-object.md)
- [Get All Redirect URLs](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/get-all-redirect-urls.md): GetAll retrieves all redirect URLs for an environment.
- [Create Redirect URL](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/create-redirect-url.md): Create creates a redirect URL for an environment.
- [Get Redirect URL](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/get-redirect-url.md): Get retrieves a redirect URL for an environment.
- [Update Redirect URL](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/update-redirect-url.md): Update updates the valid types for a redirect URL for an environment.
- [Delete Redirect URL](https://stytch.com/docs/api-reference/pwa/api/v3/redirect-urls/delete-redirect-url.md): Delete deletes a redirect URL for an environment.

###### SDK Configuration

- [B2B SDK Configuration Object](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/b2b-sdk-config-object.md)
- [Get B2B SDK Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/get-b2b-sdk-config.md): GetB2BConfig retrieves the SDK configuration for a B2B project environment
- [Set B2B SDK Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/set-b2b-sdk-config.md): SetB2BConfig updates the SDK configuration for a B2B project environment
- [Consumer SDK Configuration Object](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/consumer-sdk-config-object.md)
- [Get Consumer SDK Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/get-consumer-sdk-config.md): GetConsumerConfig retrieves the SDK configuration for a B2C project environment
- [Set Consumer SDK Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/sdk/set-consumer-sdk-config.md): SetConsumerConfig updates the SDK configuration for a B2C project environment

###### RBAC

- [RBAC Policy Object](https://stytch.com/docs/api-reference/pwa/api/v3/rbac/policy-object.md)
- [Get RBAC Policy](https://stytch.com/docs/api-reference/pwa/api/v3/rbac/get-rbac-policy.md): Get retrieves the RBAC policy for an environment.
- [Set RBAC Policy](https://stytch.com/docs/api-reference/pwa/api/v3/rbac/set-rbac-policy.md): Set updates the RBAC policy for an environment.

###### Password Strength Configuration

- [Password Strength Config Object](https://stytch.com/docs/api-reference/pwa/api/v3/password-strength-config/password-strength-config-object.md)
- [Get Password Strength Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/password-strength-config/get-password-strength-config.md): Get retrieves the password strength configuration for an environment.
- [Set Password Strength Configuration](https://stytch.com/docs/api-reference/pwa/api/v3/password-strength-config/set-password-strength-config.md): Set updates the password strength configuration for an environment.

###### JWT Templates

- [JWT Template Object](https://stytch.com/docs/api-reference/pwa/api/v3/jwt-templates/jwt-template-object.md)
- [Get JWT Template](https://stytch.com/docs/api-reference/pwa/api/v3/jwt-templates/get-jwt-template.md): Get retrieves a JWT template for a project
- [Set JWT Template](https://stytch.com/docs/api-reference/pwa/api/v3/jwt-templates/set-jwt-template.md): Set updates a specific JWT template for a project

###### Country Code Allowlist

- [Get Country Code Allowlist (SMS)](https://stytch.com/docs/api-reference/pwa/api/v3/country-code-allowlist/get-country-code-allowlist-sms.md): GetAllowedSMSCountryCodes retrieves the allowed SMS country codes for an environment.
- [Set Country Code Allowlist (SMS)](https://stytch.com/docs/api-reference/pwa/api/v3/country-code-allowlist/set-country-code-allowlist-sms.md): SetAllowedSMSCountryCodes sets the allowed SMS country codes for an environment.
- [Get Country Code Allowlist (WhatsApp)](https://stytch.com/docs/api-reference/pwa/api/v3/country-code-allowlist/get-country-code-allowlist-whatsapp.md): GetAllowedWhatsAppCountryCodes retrieves the allowed WhatsApp country codes for an environment.
- [Set Country Code Allowlist (WhatsApp)](https://stytch.com/docs/api-reference/pwa/api/v3/country-code-allowlist/set-country-code-allowlist-whatsapp.md): SetAllowedWhatsAppCountryCodes sets the allowed WhatsApp country codes for an environment.

###### Event Log Streaming

- [Destination Config Object](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/destination-config-object.md)
- [Get Event Log Streaming Config](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/get-event-log-streaming.md): Get retrieves an event log streaming config for an environment.
- [Create Event Log Streaming Config](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/create-event-log-streaming.md): Create creates an event log streaming config for an environment.
- [Update Event Log Streaming Config](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/update-event-log-streaming.md): Update updates an event log streaming config for an environment.
- [Delete Event Log Streaming Config](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/delete-event-log-streaming.md): Delete deletes an event log streaming config for an environment.
- [Enable Event Log Streaming](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/enable-event-log-streaming.md): Enable starts streaming event logs for an environment to a destination.
- [Disable Event Log Streaming](https://stytch.com/docs/api-reference/pwa/api/v3/event-log-streaming/disable-event-log-streaming.md): Disable stops streaming event logs for an environment to a destination.

###### Trusted Auth Tokens

- [Trusted Auth Token Object](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/trusted-auth-token-object.md)
- [Get All Trusted Auth Tokens](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/get-all-trusted-auth-tokens.md): GetAll retrieves all the trusted token profiles for an environment.
- [Create Trusted Auth Token](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/create-trusted-auth-token.md): Create creates a trusted token profile for an environment.
- [Get Trusted Auth Token](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/get-trusted-auth-token.md): Get retrieves the trusted token profile for an environment.
- [Update Trusted Auth Token](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/update-trusted-auth-token.md): Update updates a trusted token profile for an environment.
- [Delete Trusted Auth Token](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/delete-trusted-auth-token.md): Delete deletes a trusted token profile for an environment.
- [Create PEM File](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/create-pem-file.md): CreatePEM creates a PEM file for a trusted token profile for an environment.
- [Get PEM File](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/get-pem-file.md): GetPEM retrieves a PEM file for a trusted token profile for an environment.
- [Delete PEM File](https://stytch.com/docs/api-reference/pwa/api/v3/trusted-auth-tokens/delete-pem-file.md): DeletePEM deletes a PEM file for a trusted token profile for an environment.
