Skip to content
v2.7

Project

Project configuration from the server: platforms, keys, sign-in methods, global variables and emails.

Project configuration from the server: platforms, keys, sign-in methods, global variables and emails.

Class Project: 113 methods (0 in @owbase/web, 113 in @owbase/node). The examples use the object form of the parameters; replace the values between < and > with your own.

Get project

GET /project · method page

SDK: @owbase/node only

Get a project.

No parameters.

Access: API key with the project.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.get();

Delete project

DELETE /project · method page

SDK: @owbase/node only

Delete a project.

No parameters.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.delete();

Update project auth method status

PATCH /project/auth-methods/{methodId} · method page

SDK: @owbase/node only

Update properties of a specific auth method. Use this endpoint to enable or disable a method in your project.

Parameter Type Required Description
methodId ProjectAuthMethodId yes Auth Method ID. Possible values: email-password,magic-url,email-otp,anonymous,invites,jwt,phone,passkey Values: email-password, magic-url, email-otp, anonymous, invites, jwt, phone, passkey.
enabled boolean yes Auth method status.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project, ProjectAuthMethodId } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateAuthMethod({
methodId: ProjectAuthMethodId.EmailPassword,
enabled: false,
});

List project keys

GET /project/keys · method page

SDK: @owbase/node only

Get a list of all API keys from the current project.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the keys.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listKeys({
queries: [], // optional
total: false, // optional
});

Create ephemeral project key

POST /project/keys/ephemeral · method page

SDK: @owbase/node only

Create a new ephemeral API key. It’s recommended to have multiple API keys with strict scopes for separate functions within your project.

You can also create a standard API key if you need a longer-lived key instead.

Parameter Type Required Description
scopes ProjectKeyScopes[] yes Key scopes list. Maximum of 200 scopes are allowed. Values: project.read, project.write, usage.read, keys.read, keys.write, platforms.read, platforms.write, mocks.read, mocks.write, policies.read, policies.write, project.policies.read, project.policies.write, project.oauth2.read, project.oauth2.write, templates.read, templates.write, stages.read, stages.write, users.read, users.write, sessions.read, sessions.write, teams.read, teams.write, databases.read, databases.write, tables.read, tables.write, columns.read, columns.write, indexes.read, indexes.write, rows.read, rows.write, embeddings.write, collections.read, collections.write, attributes.read, attributes.write, documents.read, documents.write, documentsdb.read, documentsdb.write, documentsdb.collections.read, documentsdb.collections.write, documentsdb.documents.read, documentsdb.documents.write, documentsdb.indexes.read, documentsdb.indexes.write, vectorsdb.read, vectorsdb.write, vectorsdb.collections.read, vectorsdb.collections.write, vectorsdb.documents.read, vectorsdb.documents.write, vectorsdb.indexes.read, vectorsdb.indexes.write, buckets.read, buckets.write, files.read, files.write, tokens.read, tokens.write, functions.read, functions.write, executions.read, executions.write, execution.read, execution.write, sites.read, sites.write, log.read, log.write, providers.read, providers.write, topics.read, topics.write, subscribers.read, subscribers.write, targets.read, targets.write, messages.read, messages.write, rules.read, rules.write, webhooks.read, webhooks.write, monitors.read, monitors.write, alerts.read, locale.read, avatars.read, avatars.write, health.read, assistant.read, migrations.read, migrations.write, schedules.read, schedules.write, vcs.read, vcs.write, insights.read, insights.write, reports.read, reports.write, reviews.read, reviews.write, presences.read, presences.write.
duration number yes Time in seconds before ephemeral key expires. Maximum duration is 3600 seconds.

Access: API key with the keys.write scope.

@owbase/node
import { Client, Project, ProjectKeyScopes } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createEphemeralKey({
scopes: [ProjectKeyScopes.UsersRead],
duration: 600,
});

Get project key

GET /project/keys/{keyId} · method page

SDK: @owbase/node only

Get a key by its unique ID.

Parameter Type Required Description
keyId string yes Key ID.

Access: API key with the keys.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getKey({
keyId: '<KEY_ID>',
});

Update project key

PUT /project/keys/{keyId} · method page

SDK: @owbase/node only

Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.

Parameter Type Required Description
keyId string yes Key ID.
name string yes Key name. Max length: 128 chars.
scopes ProjectKeyScopes[] yes Key scopes list. Maximum of 200 scopes are allowed. Values: project.read, project.write, usage.read, keys.read, keys.write, platforms.read, platforms.write, mocks.read, mocks.write, policies.read, policies.write, project.policies.read, project.policies.write, project.oauth2.read, project.oauth2.write, templates.read, templates.write, stages.read, stages.write, users.read, users.write, sessions.read, sessions.write, teams.read, teams.write, databases.read, databases.write, tables.read, tables.write, columns.read, columns.write, indexes.read, indexes.write, rows.read, rows.write, embeddings.write, collections.read, collections.write, attributes.read, attributes.write, documents.read, documents.write, documentsdb.read, documentsdb.write, documentsdb.collections.read, documentsdb.collections.write, documentsdb.documents.read, documentsdb.documents.write, documentsdb.indexes.read, documentsdb.indexes.write, vectorsdb.read, vectorsdb.write, vectorsdb.collections.read, vectorsdb.collections.write, vectorsdb.documents.read, vectorsdb.documents.write, vectorsdb.indexes.read, vectorsdb.indexes.write, buckets.read, buckets.write, files.read, files.write, tokens.read, tokens.write, functions.read, functions.write, executions.read, executions.write, execution.read, execution.write, sites.read, sites.write, log.read, log.write, providers.read, providers.write, topics.read, topics.write, subscribers.read, subscribers.write, targets.read, targets.write, messages.read, messages.write, rules.read, rules.write, webhooks.read, webhooks.write, monitors.read, monitors.write, alerts.read, locale.read, avatars.read, avatars.write, health.read, assistant.read, migrations.read, migrations.write, schedules.read, schedules.write, vcs.read, vcs.write, insights.read, insights.write, reports.read, reports.write, reviews.read, reviews.write, presences.read, presences.write.
expire string no Expiration time in ISO 8601 format. Use null for unlimited expiration.
description string no Optional description for the key.

Access: API key with the keys.write scope.

@owbase/node
import { Client, Project, ProjectKeyScopes } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateKey({
keyId: '<KEY_ID>',
name: '<NAME>',
scopes: [ProjectKeyScopes.UsersRead],
expire: '2020-10-15T06:38:00.000+00:00', // optional
description: '<DESCRIPTION>', // optional
});

Delete project key

DELETE /project/keys/{keyId} · method page

SDK: @owbase/node only

Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.

Parameter Type Required Description
keyId string yes Key ID.

Access: API key with the keys.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.deleteKey({
keyId: '<KEY_ID>',
});

Update project labels

PUT /project/labels · method page

SDK: @owbase/node only

Update the project labels. Labels can be used to easily filter projects in an organization.

Parameter Type Required Description
labels string[] yes Array of project labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateLabels({
labels: ['production'],
});

List project mock phones

GET /project/mock-phones · method page

SDK: @owbase/node only

Get a list of all mock phones in the project. This endpoint returns an array of all mock phones and their OTPs.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the mocks.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listMockPhones({
queries: [], // optional
total: false, // optional
});

Create project mock phone

POST /project/mock-phones · method page

SDK: @owbase/node only

Create a new mock phone for your project. Use this endpoint to register a mock phone number and its sign-in OTP for your testers.

Parameter Type Required Description
number string yes Phone number to associate with the mock phone. Must be a valid E.164 formatted phone number.
otp string yes One-time password (OTP) to associate with the mock phone. Must be a 6-digit numeric code.

Access: API key with the mocks.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createMockPhone({
number: '+12065550100',
otp: '<OTP>',
});

Get project mock phone

GET /project/mock-phones/{number} · method page

SDK: @owbase/node only

Get a mock phone by its unique number. This endpoint returns the mock phone’s OTP.

Parameter Type Required Description
number string yes Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.

Access: API key with the mocks.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getMockPhone({
number: '+12065550100',
});

Update project mock phone

PUT /project/mock-phones/{number} · method page

SDK: @owbase/node only

Update a mock phone by its unique number. Use this endpoint to update the mock phone’s OTP.

Parameter Type Required Description
number string yes Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.
otp string yes One-time password (OTP) to associate with the mock phone. Must be a 6-digit numeric code.

Access: API key with the mocks.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateMockPhone({
number: '+12065550100',
otp: '<OTP>',
});

Delete project mock phone

DELETE /project/mock-phones/{number} · method page

SDK: @owbase/node only

Delete a mock phone by its unique number. This endpoint removes the mock phone and its OTP configuration from the project.

Parameter Type Required Description
number string yes Phone number associated with the mock phone. Must be a valid E.164 formatted phone number.

Access: API key with the mocks.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.deleteMockPhone({
number: '+12065550100',
});

List project OAuth2 providers

GET /project/oauth2 · method page

SDK: @owbase/node only

Get a list of all OAuth2 providers supported by the server, along with the project’s configuration for each. Credential fields are write-only and always returned empty.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the project.oauth2.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listOAuth2Providers({
queries: [], // optional
total: false, // optional
});

Update project OAuth2 Amazon

PATCH /project/oauth2/amazon · method page

SDK: @owbase/node only

Update the project OAuth2 Amazon configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2
clientSecret string no ‘Client Secret’ of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Amazon({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Apple

PATCH /project/oauth2/apple · method page

SDK: @owbase/node only

Update the project OAuth2 Apple configuration.

Parameter Type Required Description
serviceId string no ‘Service ID’ of Apple OAuth2 app. For example: ip.owbase.app.web
keyId string no ‘Key ID’ of Apple OAuth2 app. For example: P4000000N8
teamId string no ‘Team ID’ of Apple OAuth2 app. For example: D4000000R6
p8File string no Contents of the Apple OAuth2 app .p8 private key file. The secret key wrapped by the PEM markers is 200 characters long. For example: —–BEGIN PRIVATE KEY—–MIGTAg…jy2Xbna—–END PRIVATE KEY—–
enabled boolean no Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
nativeClientIds string[] no App bundle IDs accepted as ID token audiences for native Sign in with Apple. For example: com.example.app. Together with the Services ID, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
nativeEnabled boolean no Native Sign in with Apple status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a Services ID or at least one native client ID to match tokens against, but no key or team ID: this method verifies a signature rather than redeeming an authorization code.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Apple({
serviceId: '<SERVICE_ID>', // optional
keyId: '<KEY_ID>', // optional
teamId: '<TEAM_ID>', // optional
p8File: '<P8_FILE>', // optional
enabled: false, // optional
nativeClientIds: [], // optional
nativeEnabled: false, // optional
});

Update project OAuth2 Auth0

PATCH /project/oauth2/auth0 · method page

SDK: @owbase/node only

Update the project OAuth2 Auth0 configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
clientSecret string no ‘Client Secret’ of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF
endpoint string no Domain of Auth0 instance. For example: example.us.auth0.com
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2Auth0Prompt[] no Array of Auth0 OAuth2 prompt values. If “none” is included, it must be the only element. “none” means: don’t display any authentication or consent screens. “login” means: prompt the user to re-authenticate. “consent” means: prompt the user for consent. Pass an empty array to use the Auth0 default. Values: none, login, consent.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2Auth0Prompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Auth0({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
endpoint: '<ENDPOINT>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2Auth0Prompt.None], // optional
});

Update project OAuth2 Authentik

PATCH /project/oauth2/authentik · method page

SDK: @owbase/node only

Update the project OAuth2 Authentik configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv
clientSecret string no ‘Client Secret’ of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK
endpoint string no Domain of Authentik instance. For example: example.authentik.com
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Authentik({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
endpoint: '<ENDPOINT>', // optional
enabled: false, // optional
});

Update project OAuth2 Autodesk

PATCH /project/oauth2/autodesk · method page

SDK: @owbase/node only

Update the project OAuth2 Autodesk configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7
clientSecret string no ‘Client Secret’ of Autodesk OAuth2 app. For example: 7I000000000000MW
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Autodesk({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Bitbucket

PATCH /project/oauth2/bitbucket · method page

SDK: @owbase/node only

Update the project OAuth2 Bitbucket configuration.

Parameter Type Required Description
key string no ‘Key’ of Bitbucket OAuth2 app. For example: Knt70000000000ByRc
secret string no ‘Secret’ of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Bitbucket({
key: '<KEY>', // optional
secret: '<SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Bitly

PATCH /project/oauth2/bitly · method page

SDK: @owbase/node only

Update the project OAuth2 Bitly configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b
clientSecret string no ‘Client Secret’ of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Bitly({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Box

PATCH /project/oauth2/box · method page

SDK: @owbase/node only

Update the project OAuth2 Box configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y
clientSecret string no ‘Client Secret’ of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Box({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Cloudflare

PATCH /project/oauth2/cloudflare · method page

SDK: @owbase/node only

Update the project OAuth2 Cloudflare configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Cloudflare OAuth2 app. For example: 4b866000000000000000000000c9e4e2
clientSecret string no ‘Client Secret’ of Cloudflare OAuth2 app. For example: cfoc_5Q6YRl0000000000000000000000000000000000003d214f
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Cloudflare({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Dailymotion

PATCH /project/oauth2/dailymotion · method page

SDK: @owbase/node only

Update the project OAuth2 Dailymotion configuration.

Parameter Type Required Description
apiKey string no ‘API Key’ of Dailymotion OAuth2 app. For example: 07a9000000000000067f
apiSecret string no ‘API Secret’ of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Dailymotion({
apiKey: '<API_KEY>', // optional
apiSecret: '<API_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Discord

PATCH /project/oauth2/discord · method page

SDK: @owbase/node only

Update the project OAuth2 Discord configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Discord OAuth2 app. For example: 950722000000343754
clientSecret string no ‘Client Secret’ of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2DiscordPrompt[] no Array with at most one Discord OAuth2 prompt value. “none” means: skip the authorization screen for users who already authorized the app with the requested scopes. “consent” means: ask users who already authorized the app to approve it again. Pass an empty array to use the Discord default. Values: none, consent.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2DiscordPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Discord({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2DiscordPrompt.None], // optional
});

Update project OAuth2 Disqus

PATCH /project/oauth2/disqus · method page

SDK: @owbase/node only

Update the project OAuth2 Disqus configuration.

Parameter Type Required Description
publicKey string no ‘Public Key, also known as API Key’ of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX
secretKey string no ‘Secret Key, also known as API Secret’ of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Disqus({
publicKey: '<PUBLIC_KEY>', // optional
secretKey: '<SECRET_KEY>', // optional
enabled: false, // optional
});

Update project OAuth2 Dropbox

PATCH /project/oauth2/dropbox · method page

SDK: @owbase/node only

Update the project OAuth2 Dropbox configuration.

Parameter Type Required Description
appKey string no ‘App Key’ of Dropbox OAuth2 app. For example: jl000000000009t
appSecret string no ‘App Secret’ of Dropbox OAuth2 app. For example: g200000000000vw
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Dropbox({
appKey: '<APP_KEY>', // optional
appSecret: '<APP_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Etsy

PATCH /project/oauth2/etsy · method page

SDK: @owbase/node only

Update the project OAuth2 Etsy configuration.

Parameter Type Required Description
keyString string no ‘Keystring’ of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2
sharedSecret string no ‘Shared Secret’ of Etsy OAuth2 app. For example: tp000000ru
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Etsy({
keyString: '<KEY_STRING>', // optional
sharedSecret: '<SHARED_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Facebook

PATCH /project/oauth2/facebook · method page

SDK: @owbase/node only

Update the project OAuth2 Facebook configuration.

Parameter Type Required Description
appId string no ‘App ID’ of Facebook OAuth2 app. For example: 260600000007694
appSecret string no ‘App Secret’ of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Facebook({
appId: '<APP_ID>', // optional
appSecret: '<APP_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Figma

PATCH /project/oauth2/figma · method page

SDK: @owbase/node only

Update the project OAuth2 Figma configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Figma OAuth2 app. For example: byay5H0000000000VtiI40
clientSecret string no ‘Client Secret’ of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Figma({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 FusionAuth

PATCH /project/oauth2/fusionauth · method page

SDK: @owbase/node only

Update the project OAuth2 FusionAuth configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of FusionAuth OAuth2 app. For example: b2222c00-0000-0000-0000-000000862097
clientSecret string no ‘Client Secret’ of FusionAuth OAuth2 app. For example: Jx4s0C0000000000000000000000000000000wGqLsc
endpoint string no Domain of FusionAuth instance. For example: example.fusionauth.io
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2FusionAuth({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
endpoint: '<ENDPOINT>', // optional
enabled: false, // optional
});

Update project OAuth2 GitHub

PATCH /project/oauth2/github · method page

SDK: @owbase/node only

Update the project OAuth2 GitHub configuration.

Parameter Type Required Description
clientId string no ‘OAuth2 app Client ID, or App ID’ of GitHub OAuth2 app. For example: e4d87900000000540733. Example of wrong value: 370006
clientSecret string no ‘Client Secret’ of GitHub OAuth2 app. For example: 5e07c00000000000000000000000000000198bcc
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2GitHubPrompt[] no Array of GitHub OAuth2 prompt values. “select_account” means: prompt the user to select an account. Pass an empty array to use the GitHub default. Values: select_account.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2GitHubPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2GitHub({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2GitHubPrompt.SelectAccount], // optional
});

Update project OAuth2 Gitlab

PATCH /project/oauth2/gitlab · method page

SDK: @owbase/node only

Update the project OAuth2 Gitlab configuration.

Parameter Type Required Description
applicationId string no ‘Application ID’ of Gitlab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252
secret string no ‘Secret’ of Gitlab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38
endpoint string no Endpoint URL of self-hosted GitLab instance. For example: https://gitlab.com
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Gitlab({
applicationId: '<APPLICATION_ID>', // optional
secret: '<SECRET>', // optional
endpoint: 'https://example.com', // optional
enabled: false, // optional
});

Update project OAuth2 Google

PATCH /project/oauth2/google · method page

SDK: @owbase/node only

Update the project OAuth2 Google configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
clientSecret string no ‘Client Secret’ of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
prompt ProjectOAuth2GooglePrompt[] no Array of Google OAuth2 prompt values. If “none” is included, it must be the only element. “none” means: don’t display any authentication or consent screens. Must not be specified with other values. “consent” means: prompt the user for consent. “select_account” means: prompt the user to select an account. Values: none, consent, select_account.
enabled boolean no Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
nativeClientIds string[] no Additional OAuth2 client IDs accepted as ID token audiences for native sign-in (Android and iOS client IDs). Together with the client ID, which is always accepted, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
nativeEnabled boolean no Native Google sign-in status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a client ID or at least one native client ID to match tokens against, but no client secret: this method verifies a signature rather than redeeming an authorization code.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2GooglePrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Google({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
prompt: [ProjectOAuth2GooglePrompt.None], // optional
enabled: false, // optional
nativeClientIds: [], // optional
nativeEnabled: false, // optional
});

Update project OAuth2 Hugging Face

PATCH /project/oauth2/huggingface · method page

SDK: @owbase/node only

Update the project OAuth2 Hugging Face configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Hugging Face OAuth2 app. For example: 2ab9cff9-d711-40ad-a91e-b08a49c42d24
clientSecret string no ‘Client Secret’ of Hugging Face OAuth2 app. For example: oauth_app_secret_wcLhRtl000000000000000000000xbNdLt
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2HuggingFace({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Kakao

PATCH /project/oauth2/kakao · method page

SDK: @owbase/node only

Update the project OAuth2 Kakao configuration.

Parameter Type Required Description
clientId string no ‘REST API key’ of Kakao OAuth2 app. For example: 839ff5000000000000000000013206de
clientSecret string no ‘Client Secret’ of Kakao OAuth2 app. For example: jLNVOK00000000000000000000yJebea. Generate it under Kakao Login > Security and set its status to enabled
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2KakaoPrompt[] no Array of Kakao OAuth2 prompt values. If “none” is included, it must be the only element. “none” means: don’t display any authentication or consent screens. “login” means: prompt the user to re-authenticate. “create” means: prompt the user to sign up. “select_account” means: prompt the user to select an account. Pass an empty array to use the Kakao default. Values: none, login, create, select_account.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2KakaoPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Kakao({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2KakaoPrompt.None], // optional
});

Update project OAuth2 Keycloak

PATCH /project/oauth2/keycloak · method page

SDK: @owbase/node only

Update the project OAuth2 Keycloak configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Keycloak OAuth2 app. For example: owbase-o0000000st-app
clientSecret string no ‘Client Secret’ of Keycloak OAuth2 app. For example: jdjrJd00000000000000000000HUsaZO
endpoint string no Domain of Keycloak instance. For example: keycloak.example.com
realmName string no Keycloak realm name. For example: owbase-realm
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Keycloak({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
endpoint: '<ENDPOINT>', // optional
realmName: '<REALM_NAME>', // optional
enabled: false, // optional
});

Update project OAuth2 Kick

PATCH /project/oauth2/kick · method page

SDK: @owbase/node only

Update the project OAuth2 Kick configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Kick OAuth2 app. For example: 01KQ7C00000000000001MFHS32
clientSecret string no ‘Client Secret’ of Kick OAuth2 app. For example: 34ac5600000000000000000000000000000000000000000000000000e830c8b
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Kick({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Linkedin

PATCH /project/oauth2/linkedin · method page

SDK: @owbase/node only

Update the project OAuth2 Linkedin configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Linkedin OAuth2 app. For example: 770000000000dv
primaryClientSecret string no ‘Primary Client Secret or Secondary Client Secret’ of Linkedin OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw==
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Linkedin({
clientId: '<CLIENT_ID>', // optional
primaryClientSecret: '<PRIMARY_CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Microsoft

PATCH /project/oauth2/microsoft · method page

SDK: @owbase/node only

Update the project OAuth2 Microsoft configuration.

Parameter Type Required Description
applicationId string no ‘Entra ID Application ID, also known as Client ID’ of Microsoft OAuth2 app. For example: 00001111-aaaa-2222-bbbb-3333cccc4444
applicationSecret string no ‘Entra ID Application Secret, also known as Client Secret’ of Microsoft OAuth2 app. For example: A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u
tenant string no Microsoft Entra ID tenant identifier. Use ‘common’, ‘organizations’, ‘consumers’ or a specific tenant ID. For example: common
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2MicrosoftPrompt[] no Array of Microsoft OAuth2 prompt values. “none” means: don’t display any authentication or consent screens. “login” means: prompt the user to re-authenticate. “consent” means: prompt the user for consent. “select_account” means: prompt the user to select an account. Pass an empty array to use the Microsoft default. Values: none, login, consent, select_account.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2MicrosoftPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Microsoft({
applicationId: '<APPLICATION_ID>', // optional
applicationSecret: '<APPLICATION_SECRET>', // optional
tenant: '<TENANT>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2MicrosoftPrompt.None], // optional
});

Update project OAuth2 Notion

PATCH /project/oauth2/notion · method page

SDK: @owbase/node only

Update the project OAuth2 Notion configuration.

Parameter Type Required Description
oauthClientId string no ‘OAuth Client ID’ of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
oauthClientSecret string no ‘OAuth Client Secret’ of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Notion({
oauthClientId: '<OAUTH_CLIENT_ID>', // optional
oauthClientSecret: '<OAUTH_CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Oidc

PATCH /project/oauth2/oidc · method page

SDK: @owbase/node only

Update the project OAuth2 Oidc configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Oidc OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG
clientSecret string no ‘Client Secret’ of Oidc OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV
wellKnownURL string no OpenID Connect well-known configuration URL. When provided, authorization, token, and user info endpoints can be discovered automatically. For example: https://myoauth.com/.well-known/openid-configuration
authorizationURL string no OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
tokenURL string no OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
userInfoURL string no OpenID Connect user info endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/userinfo
prompt ProjectOAuth2OidcPrompt[] no Array of OpenID Connect prompt values controlling the authentication and consent screens. If “none” is included, it must be the only element. “none” means: don’t display any authentication or consent screens. “login” means: prompt the user to re-authenticate. “consent” means: prompt the user for consent. “select_account” means: prompt the user to select an account. Values: none, login, consent, select_account.
maxAge number no Maximum authentication age in seconds. When set, the user must have authenticated within this many seconds, otherwise they are prompted to re-authenticate.
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2OidcPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Oidc({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
wellKnownURL: 'https://example.com', // optional
authorizationURL: 'https://example.com', // optional
tokenURL: 'https://example.com', // optional
userInfoURL: 'https://example.com', // optional
prompt: [ProjectOAuth2OidcPrompt.None], // optional
maxAge: 0, // optional
enabled: false, // optional
});

Update project OAuth2 Okta

PATCH /project/oauth2/okta · method page

SDK: @owbase/node only

Update the project OAuth2 Okta configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Okta OAuth2 app. For example: 0oa00000000000000698
clientSecret string no ‘Client Secret’ of Okta OAuth2 app. For example: Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV
domain string no Okta company domain. Required when enabling the provider. For example: trial-6400025.okta.com. Example of wrong value: trial-6400025-admin.okta.com, or https://trial-6400025.okta.com/
authorizationServerId string no Custom Authorization Servers. Optional, can be left empty or unconfigured. For example: aus000000000000000h7z
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2OktaPrompt[] no Array of Okta OAuth2 prompt values. If “none” is included, it must be the only element. “none” means: don’t display any authentication or consent screens. “login” means: prompt the user to re-authenticate. “consent” means: prompt the user for consent. Pass an empty array to use the Okta default. Values: none, login, consent.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2OktaPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Okta({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
domain: 'example.com', // optional
authorizationServerId: '<AUTHORIZATION_SERVER_ID>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2OktaPrompt.None], // optional
});

Update project OAuth2 Paypal

PATCH /project/oauth2/paypal · method page

SDK: @owbase/node only

Update the project OAuth2 Paypal configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
secretKey string no ‘Secret Key 1 or Secret Key 2’ of Paypal OAuth2 app. For example: EH8KCXtew–000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Paypal({
clientId: '<CLIENT_ID>', // optional
secretKey: '<SECRET_KEY>', // optional
enabled: false, // optional
});

Update project OAuth2 PaypalSandbox

PATCH /project/oauth2/paypalSandbox · method page

SDK: @owbase/node only

Update the project OAuth2 PaypalSandbox configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of PaypalSandbox OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
secretKey string no ‘Secret Key 1 or Secret Key 2’ of PaypalSandbox OAuth2 app. For example: EH8KCXtew–000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2PaypalSandbox({
clientId: '<CLIENT_ID>', // optional
secretKey: '<SECRET_KEY>', // optional
enabled: false, // optional
});

Update project OAuth2 Podio

PATCH /project/oauth2/podio · method page

SDK: @owbase/node only

Update the project OAuth2 Podio configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Podio OAuth2 app. For example: owbase-o0000000st-app
clientSecret string no ‘Client Secret’ of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Podio({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Resend

PATCH /project/oauth2/resend · method page

SDK: @owbase/node only

Update the project OAuth2 Resend configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Resend OAuth2 app. For example: f47ac10b-58cc-4372-a567-0e02b2c3d479
clientSecret string no ‘Client Secret’ of Resend OAuth2 app. For example: 9c1e4b00000000000000000000000000000000000000000000000000a72d5f4
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Resend({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Salesforce

PATCH /project/oauth2/salesforce · method page

SDK: @owbase/node only

Update the project OAuth2 Salesforce configuration.

Parameter Type Required Description
customerKey string no ‘Consumer Key’ of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
customerSecret string no ‘Consumer Secret’ of Salesforce OAuth2 app. For example: 3w000000000000e2
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2SalesforcePrompt[] no Array of Salesforce OAuth2 prompt values. “login” means: prompt the user to re-authenticate. “consent” means: prompt the user for consent. Pass an empty array to use the Salesforce default. Values: login, consent.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2SalesforcePrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Salesforce({
customerKey: '<CUSTOMER_KEY>', // optional
customerSecret: '<CUSTOMER_SECRET>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2SalesforcePrompt.Login], // optional
});

Update project OAuth2 Slack

PATCH /project/oauth2/slack · method page

SDK: @owbase/node only

Update the project OAuth2 Slack configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Slack OAuth2 app. For example: 23000000089.15000000000023
clientSecret string no ‘Client Secret’ of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Slack({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Spotify

PATCH /project/oauth2/spotify · method page

SDK: @owbase/node only

Update the project OAuth2 Spotify configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace
clientSecret string no ‘Client Secret’ of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Spotify({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Stripe

PATCH /project/oauth2/stripe · method page

SDK: @owbase/node only

Update the project OAuth2 Stripe configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
apiSecretKey string no ‘API Secret Key’ of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Stripe({
clientId: '<CLIENT_ID>', // optional
apiSecretKey: '<API_SECRET_KEY>', // optional
enabled: false, // optional
});

Update project OAuth2 TikTok

PATCH /project/oauth2/tiktok · method page

SDK: @owbase/node only

Update the project OAuth2 TikTok configuration.

Parameter Type Required Description
clientId string no ‘Client key’ of TikTok OAuth2 app. For example: awz000000000tyw0
clientSecret string no ‘Client secret’ of TikTok OAuth2 app. For example: 6wXewM00000000000000000000yXnite
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2TikTok({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Tradeshift

PATCH /project/oauth2/tradeshift · method page

SDK: @owbase/node only

Update the project OAuth2 Tradeshift configuration.

Parameter Type Required Description
oauth2ClientId string no ‘OAuth2 Client ID’ of Tradeshift OAuth2 app. For example: owbase-tes00000.0000000000est-app
oauth2ClientSecret string no ‘OAuth2 Client Secret’ of Tradeshift OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Tradeshift({
oauth2ClientId: '<OAUTH2_CLIENT_ID>', // optional
oauth2ClientSecret: '<OAUTH2_CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Tradeshift Sandbox

PATCH /project/oauth2/tradeshiftBox · method page

SDK: @owbase/node only

Update the project OAuth2 Tradeshift Sandbox configuration.

Parameter Type Required Description
oauth2ClientId string no ‘OAuth2 Client ID’ of Tradeshift Sandbox OAuth2 app. For example: owbase-tes00000.0000000000est-app
oauth2ClientSecret string no ‘OAuth2 Client Secret’ of Tradeshift Sandbox OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2TradeshiftSandbox({
oauth2ClientId: '<OAUTH2_CLIENT_ID>', // optional
oauth2ClientSecret: '<OAUTH2_CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Twitch

PATCH /project/oauth2/twitch · method page

SDK: @owbase/node only

Update the project OAuth2 Twitch configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p
clientSecret string no ‘Client Secret’ of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Twitch({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Webflow

PATCH /project/oauth2/webflow · method page

SDK: @owbase/node only

Update the project OAuth2 Webflow configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Webflow OAuth2 app. For example: 8bb20000000000000000000000000000000000000000000000000000000040dd
clientSecret string no ‘Client Secret’ of Webflow OAuth2 app. For example: 59bf00000000000000000000000000000000000000000000000000000000fe59
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Webflow({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 WordPress

PATCH /project/oauth2/wordpress · method page

SDK: @owbase/node only

Update the project OAuth2 WordPress configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of WordPress OAuth2 app. For example: 130005
clientSecret string no ‘Client Secret’ of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2WordPress({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 X

PATCH /project/oauth2/x · method page

SDK: @owbase/node only

Update the project OAuth2 X configuration.

Parameter Type Required Description
customerKey string no ‘Customer Key’ of X OAuth2 app. For example: slzZV0000000000000NFLaWT
secretKey string no ‘Secret Key’ of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2X({
customerKey: '<CUSTOMER_KEY>', // optional
secretKey: '<SECRET_KEY>', // optional
enabled: false, // optional
});

Update project OAuth2 Yahoo

PATCH /project/oauth2/yahoo · method page

SDK: @owbase/node only

Update the project OAuth2 Yahoo configuration.

Parameter Type Required Description
clientId string no ‘Client ID, also known as Customer Key’ of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm
clientSecret string no ‘Client Secret, also known as Customer Secret’ of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Yahoo({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Yandex

PATCH /project/oauth2/yandex · method page

SDK: @owbase/node only

Update the project OAuth2 Yandex configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c
clientSecret string no ‘Client Secret’ of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Yandex({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Update project OAuth2 Zoho

PATCH /project/oauth2/zoho · method page

SDK: @owbase/node only

Update the project OAuth2 Zoho configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B
clientSecret string no ‘Client Secret’ of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
prompt ProjectOAuth2ZohoPrompt[] no Array of Zoho OAuth2 prompt values. “consent” means: prompt the user for consent. Pass an empty array to use the Zoho default. Values: consent.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project, ProjectOAuth2ZohoPrompt } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Zoho({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
prompt: [ProjectOAuth2ZohoPrompt.Consent], // optional
});

Update project OAuth2 Zoom

PATCH /project/oauth2/zoom · method page

SDK: @owbase/node only

Update the project OAuth2 Zoom configuration.

Parameter Type Required Description
clientId string no ‘Client ID’ of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ
clientSecret string no ‘Client Secret’ of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON
enabled boolean no OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.

Access: API key with the project.oauth2.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Zoom({
clientId: '<CLIENT_ID>', // optional
clientSecret: '<CLIENT_SECRET>', // optional
enabled: false, // optional
});

Get project OAuth2 provider

GET /project/oauth2/{providerId} · method page

SDK: @owbase/node only

Get a single OAuth2 provider configuration. Credential fields (client secret, p8 file, key/team IDs) are write-only and always returned empty.

Parameter Type Required Description
providerId ProjectOAuthProviderId yes OAuth2 provider key. For example: github, google, apple. Values: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, cloudflare, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, fusionauth, github, gitlab, google, huggingface, kakao, keycloak, kick, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, resend, salesforce, slack, spotify, stripe, tiktok, tradeshift, tradeshiftBox, twitch, webflow, wordpress, x, yahoo, yammer, yandex, zoho, zoom.

Access: API key with the project.oauth2.read scope.

@owbase/node
import { Client, Project, ProjectOAuthProviderId } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getOAuth2Provider({
providerId: ProjectOAuthProviderId.Amazon,
});

List project platforms

GET /project/platforms · method page

SDK: @owbase/node only

Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: type, name, hostname, bundleIdentifier, applicationId, packageIdentifierName, packageName
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the platforms.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listPlatforms({
queries: [], // optional
total: false, // optional
});

Create project Android platform

POST /project/platforms/android · method page

SDK: @owbase/node only

Create a new Android platform for your project. Use this endpoint to register a new Android platform where your users will run your application which will interact with the Owbase API.

Parameter Type Required Description
platformId string yes Platform ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
name string yes Platform name. Max length: 128 chars.
applicationId string yes Android application ID. Max length: 256 chars.
fingerprints string[] no SHA-256 fingerprints of the certificates your app is signed with, such as “14:6D:E9:…:2B:6A”. Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with ./gradlew signingReport.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createAndroidPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
applicationId: '<APPLICATION_ID>',
fingerprints: [], // optional
});

Update project Android platform

PUT /project/platforms/android/{platformId} · method page

SDK: @owbase/node only

Update an Android platform by its unique ID. Use this endpoint to update the platform’s name, application ID or signing certificate fingerprints.

Parameter Type Required Description
platformId string yes Platform ID.
name string yes Platform name. Max length: 128 chars.
applicationId string yes Android application ID. Max length: 256 chars.
fingerprints string[] no SHA-256 fingerprints of the certificates your app is signed with, such as “14:6D:E9:…:2B:6A”. Passkeys created in the app are accepted when its signature matches one. Find them under App signing in Play Console, or with ./gradlew signingReport. Omit to keep the current list, or pass an empty array to clear it.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateAndroidPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
applicationId: '<APPLICATION_ID>',
fingerprints: [], // optional
});

Create project Apple platform

POST /project/platforms/apple · method page

SDK: @owbase/node only

Create a new Apple platform for your project. Use this endpoint to register a new Apple platform where your users will run your application which will interact with the Owbase API.

Parameter Type Required Description
platformId string yes Platform ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
name string yes Platform name. Max length: 128 chars.
bundleIdentifier string yes Apple bundle identifier. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createApplePlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
bundleIdentifier: '<BUNDLE_IDENTIFIER>',
});

Update project Apple platform

PUT /project/platforms/apple/{platformId} · method page

SDK: @owbase/node only

Update an Apple platform by its unique ID. Use this endpoint to update the platform’s name or bundle identifier.

Parameter Type Required Description
platformId string yes Platform ID.
name string yes Platform name. Max length: 128 chars.
bundleIdentifier string yes Apple bundle identifier. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateApplePlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
bundleIdentifier: '<BUNDLE_IDENTIFIER>',
});

Create project Linux platform

POST /project/platforms/linux · method page

SDK: @owbase/node only

Create a new Linux platform for your project. Use this endpoint to register a new Linux platform where your users will run your application which will interact with the Owbase API.

Parameter Type Required Description
platformId string yes Platform ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
name string yes Platform name. Max length: 128 chars.
packageName string yes Linux package name. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createLinuxPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
packageName: '<PACKAGE_NAME>',
});

Update project Linux platform

PUT /project/platforms/linux/{platformId} · method page

SDK: @owbase/node only

Update a Linux platform by its unique ID. Use this endpoint to update the platform’s name or package name.

Parameter Type Required Description
platformId string yes Platform ID.
name string yes Platform name. Max length: 128 chars.
packageName string yes Linux package name. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateLinuxPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
packageName: '<PACKAGE_NAME>',
});

Create project web platform

POST /project/platforms/web · method page

SDK: @owbase/node only

Create a new web platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Owbase API.

Parameter Type Required Description
platformId string yes Platform ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
name string yes Platform name. Max length: 128 chars.
hostname string yes Platform web hostname. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createWebPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
hostname: 'app.example.com',
});

Update project web platform

PUT /project/platforms/web/{platformId} · method page

SDK: @owbase/node only

Update a web platform by its unique ID. Use this endpoint to update the platform’s name or hostname.

Parameter Type Required Description
platformId string yes Platform ID.
name string yes Platform name. Max length: 128 chars.
hostname string yes Platform web hostname. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateWebPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
hostname: 'app.example.com',
});

Create project Windows platform

POST /project/platforms/windows · method page

SDK: @owbase/node only

Create a new Windows platform for your project. Use this endpoint to register a new Windows platform where your users will run your application which will interact with the Owbase API.

Parameter Type Required Description
platformId string yes Platform ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
name string yes Platform name. Max length: 128 chars.
packageIdentifierName string yes Windows package identifier name. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createWindowsPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
packageIdentifierName: '<PACKAGE_IDENTIFIER_NAME>',
});

Update project Windows platform

PUT /project/platforms/windows/{platformId} · method page

SDK: @owbase/node only

Update a Windows platform by its unique ID. Use this endpoint to update the platform’s name or package identifier name.

Parameter Type Required Description
platformId string yes Platform ID.
name string yes Platform name. Max length: 128 chars.
packageIdentifierName string yes Windows package identifier name. Max length: 256 chars.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateWindowsPlatform({
platformId: '<PLATFORM_ID>',
name: '<NAME>',
packageIdentifierName: '<PACKAGE_IDENTIFIER_NAME>',
});

Get project platform

GET /project/platforms/{platformId} · method page

SDK: @owbase/node only

Get a platform by its unique ID. This endpoint returns the platform’s details, including its name, type, and key configurations.

Parameter Type Required Description
platformId string yes Platform ID.

Access: API key with the platforms.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getPlatform({
platformId: '<PLATFORM_ID>',
});

Delete project platform

DELETE /project/platforms/{platformId} · method page

SDK: @owbase/node only

Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.

Parameter Type Required Description
platformId string yes Platform ID.

Access: API key with the platforms.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.deletePlatform({
platformId: '<PLATFORM_ID>',
});

List project policies

GET /project/policies · method page

SDK: @owbase/node only

Get a list of all project policies and their current configuration.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the policies.read scope (also accepts project.policies.read).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listPolicies({
queries: [], // optional
total: false, // optional
});

Update deny aliased email policy

PATCH /project/policies/deny-aliased-email · method page

SDK: @owbase/node only

Configures if aliased emails such as subaddresses and emails with suffixes are denied during new users sign-ups and email updates.

Parameter Type Required Description
enabled boolean yes Set whether or not to block aliased emails during signup and email updates.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateDenyAliasedEmailPolicy({
enabled: false,
});

Update deny non-corporate email policy

PATCH /project/policies/deny-corporate-email · method page

SDK: @owbase/node only

Configures if only corporate email addresses (non-free and non-disposable domains) are allowed during new user sign-ups and email updates.

Parameter Type Required Description
enabled boolean yes Set whether or not to restrict sign-ups and email updates to corporate email addresses only.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateDenyCorporateEmailPolicy({
enabled: false,
});

Update deny disposable email policy

PATCH /project/policies/deny-disposable-email · method page

SDK: @owbase/node only

Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.

Parameter Type Required Description
enabled boolean yes Set whether or not to block disposable email addresses during signup and email updates.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateDenyDisposableEmailPolicy({
enabled: false,
});

Update deny free email policy

PATCH /project/policies/deny-free-email · method page

SDK: @owbase/node only

Configures if emails from free providers such as Gmail or Yahoo are denied during new users sign-ups and email updates.

Parameter Type Required Description
enabled boolean yes Set whether or not to block free email addresses during signup and email updates.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateDenyFreeEmailPolicy({
enabled: false,
});

Update deny realtime guests policy

PATCH /project/policies/deny-realtime-guests · method page

SDK: @owbase/node only

Configures if guests, connections without a signed-in user, may subscribe to realtime channels. When enabled, a guest can still connect and sign in over the connection, but cannot subscribe until it does.

Parameter Type Required Description
enabled boolean yes Set whether or not to stop guests from subscribing to realtime channels.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateDenyRealtimeGuestsPolicy({
enabled: false,
});

Update membership privacy policy

PATCH /project/policies/membership-privacy · method page

SDK: @owbase/node only

Updating this policy allows you to control if team members can see other members information. When enabled, all team members can see ID, name, email, phone number, and MFA status of other members..

Parameter Type Required Description
userId boolean no Set to true if you want make user ID visible to all team members, or false to hide it.
userEmail boolean no Set to true if you want make user email visible to all team members, or false to hide it.
userPhone boolean no Set to true if you want make user phone number visible to all team members, or false to hide it.
userName boolean no Set to true if you want make user name visible to all team members, or false to hide it.
userMFA boolean no Set to true if you want make user MFA status visible to all team members, or false to hide it.
userAccessedAt boolean no Set to true if you want make user last access time visible to all team members, or false to hide it.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateMembershipPrivacyPolicy({
userId: false, // optional
userEmail: false, // optional
userPhone: false, // optional
userName: false, // optional
userMFA: false, // optional
userAccessedAt: false, // optional
});

Update MFA factors policy

PATCH /project/policies/mfa-factors · method page

SDK: @owbase/node only

Updating this policy allows you to control which factors users can use to complete an MFA challenge. Disabled factors cannot be used to create a challenge and are reported as unavailable when listing factors. The custom factor is disabled by default; enable it to deliver challenge codes through your own channel. Recovery codes always remain available as a fallback.

Parameter Type Required Description
totp boolean no Set to true to allow TOTP to complete an MFA challenge, or false to disable it.
email boolean no Set to true to allow email to complete an MFA challenge, or false to disable it.
phone boolean no Set to true to allow phone (SMS) to complete an MFA challenge, or false to disable it.
custom boolean no Set to true to allow the custom factor to complete an MFA challenge, or false to disable it.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateMFAFactorsPolicy({
totp: false, // optional
email: false, // optional
phone: false, // optional
custom: false, // optional
});

Update passkey policy

PATCH /project/policies/passkey · method page

SDK: @owbase/node only

Set the relying party ID passkeys are bound to: the domain of your application. Passkeys work on the project’s web platforms on that domain or its subdomains, and on the domain itself for Apple apps. A localhost web platform enables passkeys for local development without a relying party ID. The relying party ID cannot change while users have passkeys, and any change invalidates ceremonies in progress.

Parameter Type Required Description
rpId string yes Relying party ID: the domain of your application, such as example.com. Use localhost for local development, or an empty string to unset it.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasskeyPolicy({
rpId: '<RP_ID>',
});

Update password dictionary policy

PATCH /project/policies/password-dictionary · method page

SDK: @owbase/node only

Updating this policy allows you to control if new passwords are checked against most common passwords dictionary. When enabled, and user changes their password, password must not be contained in the dictionary.

Custom denyList entries use case-sensitive equality and apply only while this policy is enabled. Omit denyList or pass null to preserve it, pass an array to replace it, or pass [] to clear it. Entries are stored without trimming or deduplication. Existing passwords remain valid for sign-in and password confirmation. The combined serialized project authentication configuration must fit within 16,384 characters, even when each list meets its entry limits.

Parameter Type Required Description
enabled boolean yes Toggle password dictionary policy. Set to true if you want password change to block passwords in the dictionary, or false to allow them. When changing this policy, existing passwords remain valid.
denyList string[] no Custom blocked values using case-sensitive equality. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordDictionaryPolicy({
enabled: false,
denyList: [], // optional
});

Update password history policy

PATCH /project/policies/password-history · method page

SDK: @owbase/node only

Updates one of password strength policies. Based on total length configured, previous password hashes are stored, and users cannot choose a new password that is already stored in the passwird history list, when updating an user password, or setting new one through password recovery.

Keep in mind, while password history policy is disabled, the history is not being stored. Enabling the policy will not have any history on existing users, and it will only start to collect and enforce the policy on password changes since the policy is enabled.

Parameter Type Required Description
total number no Set the password history length per user. Value can be between 1 and 20, or null to disable the limit.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordHistoryPolicy({
total: 1,
});

Update password personal data policy

PATCH /project/policies/password-personal-data · method page

SDK: @owbase/node only

Updating this policy allows you to control if password strength is checked against personal data. When enabled, and user sets or changes their password, the password must not contain user ID, name, email or phone number.

Custom denyList entries use case-insensitive substring matching and apply only while this policy is enabled. Omit denyList or pass null to preserve it, pass an array to replace it, or pass [] to clear it. Entries are stored without trimming or deduplication. Existing passwords remain valid for sign-in and password confirmation. The combined serialized project authentication configuration must fit within 16,384 characters, even when each list meets its entry limits. Password recovery also checks the recovered user profile, closing the previous gap in profile-based personal-data validation.

Parameter Type Required Description
enabled boolean yes Toggle password personal data policy. Set to true if you want to block passwords including user’s personal data, or false to allow it. When changing this policy, existing passwords remain valid.
denyList string[] no Custom blocked values using case-insensitive substring matching. Up to 100 entries of 1 to 256 characters. Omit or pass null to preserve, an array to replace, or [] to clear. Combined authentication settings must fit within 16,384 characters.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordPersonalDataPolicy({
enabled: false,
denyList: [], // optional
});

Update password pwned policy

PATCH /project/policies/password-pwned · method page

SDK: @owbase/node only

Updating this policy allows you to control if passwords are checked against the Have I Been Pwned breach database. When enabled, every password a user signs up, signs in or resets with is checked and the result is recorded on the user as passwordPwned. On its own the policy only records. Enable users to reject a breached password when a user signs up or sets a new password, and sessions to refuse a sign-in with a breached password until it is reset. Only the first five characters of the password hash are ever shared with the service. Options left out keep their current value.

Parameter Type Required Description
enabled boolean no Toggle password pwned policy. Set to true to check passwords against known data breaches and record the result on the user, or false to never check. Default is true. On its own this only records; use users and sessions to block. When changing this policy, existing passwords remain valid.
sessions boolean no Whether a sign-in with a breached password is refused until the password is reset. Default is false, which allows the sign-in and only records the result.
users boolean no Whether a breached password is rejected when a user signs up or sets a new password. Default is false, which allows the password and only records the result.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordPwnedPolicy({
enabled: false, // optional
sessions: false, // optional
users: false, // optional
});

Update password rotation policy

PATCH /project/policies/password-rotation · method page

SDK: @owbase/node only

Require a password reset when an email/password sign-in uses a password older than the configured maximum age. Options left out keep their current value.

Parameter Type Required Description
enabled boolean no Enable password rotation. Disabled by default.
maxAge number no Maximum password age in seconds. Minimum allowed value is 86400 seconds (1 day), and maximum is 10 years, which is 315360000 seconds. Defaults to 1 year, which is 31536000 seconds.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordRotationPolicy({
enabled: false, // optional
maxAge: 86400, // optional
});

Update password strength policy

PATCH /project/policies/password-strength · method page

SDK: @owbase/node only

Update the password strength requirements for users in the project.

Parameter Type Required Description
min number no Minimum password length. Value must be between 8 and 256. Default is 8.
uppercase boolean no Whether passwords must include at least one uppercase letter.
lowercase boolean no Whether passwords must include at least one lowercase letter.
number boolean no Whether passwords must include at least one number.
symbols boolean no Whether passwords must include at least one symbol.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePasswordStrengthPolicy({
min: 8, // optional
uppercase: false, // optional
lowercase: false, // optional
number: false, // optional
symbols: false, // optional
});

Update session alert policy

PATCH /project/policies/session-alert · method page

SDK: @owbase/node only

Updating this policy allows you to control if email alert is sent upon session creation. When enabled, and user signs into their account, they will be sent an email notification. There is an exception, the first session after a new sign up does not trigger an alert, even if the policy is enabled.

Parameter Type Required Description
enabled boolean yes Toggle session alert policy. Set to true if you want users to receive email notifications when a sessions are created for their users, or false to not send email alerts.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateSessionAlertPolicy({
enabled: false,
});

Update session duration policy

PATCH /project/policies/session-duration · method page

SDK: @owbase/node only

Update maximum duration how long sessions created within a project should stay active for.

Parameter Type Required Description
duration number yes Maximum session length in seconds. Minium allowed value is 60 seconds, and maximum is 1 year, which is 31536000 seconds.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateSessionDurationPolicy({
duration: 60,
});

Update session invalidation policy

PATCH /project/policies/session-invalidation · method page

SDK: @owbase/node only

Updating this policy allows you to control if existing sessions should be invalidated when a password of a user is changed. When enabled, and user changes their password, they will be logged out of all their devices.

Parameter Type Required Description
enabled boolean yes Toggle session invalidation policy. Set to true if you want password change to invalidate all sessions of an user, or false to keep sessions active.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateSessionInvalidationPolicy({
enabled: false,
});

Update session limit policy

PATCH /project/policies/session-limit · method page

SDK: @owbase/node only

Update the maximum number of sessions allowed per user. When the limit is hit, the oldest session will be deleted to make room for new one.

Parameter Type Required Description
total number yes Set the maximum number of sessions allowed per user. Value can be between 1 and 100.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateSessionLimitPolicy({
total: 1,
});

Update user limit policy

PATCH /project/policies/user-limit · method page

SDK: @owbase/node only

Update the maximum number of users in the project. When the limit is hit or amount of existing users already exceeded the limit, all users remain active, but new user sign up will be prohibited.

Parameter Type Required Description
total number no Set the maximum number of users allowed in the project. Value can be between 0 and 10000. Use 0 or null to disable the limit.

Access: API key with the policies.write scope (also accepts project.policies.write).

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateUserLimitPolicy({
total: 0,
});

Get project policy

GET /project/policies/{policyId} · method page

SDK: @owbase/node only

Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.

Parameter Type Required Description
policyId ProjectPolicyId yes Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, deny-realtime-guests, passkey. Values: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, password-rotation, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email, deny-realtime-guests, passkey.

Access: API key with the policies.read scope (also accepts project.policies.read).

@owbase/node
import { Client, Project, ProjectPolicyId } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getPolicy({
policyId: ProjectPolicyId.PasswordDictionary,
});

Get project preferences

GET /project/prefs · method page

SDK: @owbase/node only

Get the project preferences. Preferences are a key-value object stored on the project for anyone working on it.

No parameters.

Access: API key with the project.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getPrefs();

Update project preferences

PUT /project/prefs · method page

SDK: @owbase/node only

Update the project preferences. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.

Parameter Type Required Description
prefs object yes Prefs key-value JSON object.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updatePrefs({
prefs: {},
});

Update project protocol

PATCH /project/protocols/{protocolId} · method page

SDK: @owbase/node only

Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.

Parameter Type Required Description
protocolId ProjectProtocolId yes Protocol name. Can be one of: rest, graphql, websocket Values: rest, graphql, websocket.
enabled boolean yes Protocol status.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project, ProjectProtocolId } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateProtocol({
protocolId: ProjectProtocolId.Rest,
enabled: false,
});

Update project service

PATCH /project/services/{serviceId} · method page

SDK: @owbase/node only

Update properties of a specific service. Use this endpoint to enable or disable a service in your project.

Parameter Type Required Description
serviceId ProjectServiceId yes Service name. Can be one of: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor Values: account, avatars, databases, tablesdb, locale, health, project, storage, teams, users, vcs, sites, functions, proxy, graphql, migrations, messaging, advisor.
enabled boolean yes Service status.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project, ProjectServiceId } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateService({
serviceId: ProjectServiceId.Account,
enabled: false,
});

Delete all project sessions

DELETE /project/sessions · method page

SDK: @owbase/node only

Delete all sessions in the project. Any session created before this request will be invalidated immediately: users will be signed out of every active client (web, mobile, server SDKs, JWTs), and will be able to sign in again afterwards. API keys are not affected by this action.

No parameters.

Access: API key with the users.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.deleteSessions();

Update project SMTP configuration

PATCH /project/smtp · method page

SDK: @owbase/node only

Update the SMTP configuration for your project. Use this endpoint to configure your project’s SMTP provider with your custom settings for sending transactional emails.

Parameter Type Required Description
host string no SMTP server hostname (domain)
port number no SMTP server port
username string no SMTP server username. Pass an empty string to clear a previously set value.
password string no SMTP server password. Pass an empty string to clear a previously set value. This property is stored securely and cannot be read in future (write-only).
senderEmail string no Email address shown in inbox as the sender of the email. Pass an empty string to clear a previously set value.
senderName string no Name shown in inbox as the sender of the email. Pass an empty string to clear a previously set value.
replyToEmail string no Email used when user replies to the email. Pass an empty string to clear a previously set value.
replyToName string no Name used when user replies to the email. Pass an empty string to clear a previously set value.
secure ProjectSMTPSecure no Configures if communication with SMTP server is encrypted. Allowed values are: tls, ssl. Leave empty for no encryption. Values: tls, ssl.
enabled boolean no Enable or disable custom SMTP. Custom SMTP is useful for branding purposes, but also allows use of custom email templates.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project, ProjectSMTPSecure } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateSMTP({
host: 'example.com', // optional
port: 587, // optional
username: '<USERNAME>', // optional
password: 'password', // optional
senderEmail: '[email protected]', // optional
senderName: '<SENDER_NAME>', // optional
replyToEmail: '[email protected]', // optional
replyToName: '<REPLY_TO_NAME>', // optional
secure: ProjectSMTPSecure.Tls, // optional
enabled: false, // optional
});

Create project SMTP test

POST /project/smtp/tests · method page

SDK: @owbase/node only

Send a test email to verify SMTP configuration.

Parameter Type Required Description
emails string[] yes Array of emails to send test email to. Maximum of 10 emails are allowed.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createSMTPTest({
emails: ['[email protected]'],
});

List project email templates

GET /project/templates/email · method page

SDK: @owbase/node only

Get a list of all custom email templates configured for the project. This endpoint returns an array of all configured email templates and their locales.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Only supported methods are limit and offset
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the templates.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listEmailTemplates({
queries: [], // optional
total: false, // optional
});

Update project email template

PATCH /project/templates/email · method page

SDK: @owbase/node only

Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.

Parameter Type Required Description
templateId ProjectEmailTemplateId yes Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification, otpRecovery Values: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification, otpRecovery.
locale ProjectEmailTemplateLocale no Custom email template locale. If left empty, the fallback locale (en) will be used. Values: af, ar-ae, ar-bh, ar-dz, ar-eg, ar-iq, ar-jo, ar-kw, ar-lb, ar-ly, ar-ma, ar-om, ar-qa, ar-sa, ar-sy, ar-tn, ar-ye, as, az, be, bg, bh, bn, bs, ca, cs, cy, da, de, de-at, de-ch, de-li, de-lu, el, en, en-au, en-bz, en-ca, en-gb, en-ie, en-jm, en-nz, en-tt, en-us, en-za, eo, es, es-ar, es-bo, es-cl, es-co, es-cr, es-do, es-ec, es-gt, es-hn, es-mx, es-ni, es-pa, es-pe, es-pr, es-py, es-sv, es-uy, es-ve, et, eu, fa, fi, fo, fr, fr-be, fr-ca, fr-ch, fr-lu, ga, gd, he, hi, hr, hu, id, is, it, it-ch, ja, ji, ko, ku, lt, lv, mk, ml, ms, mt, nb, ne, nl, nl-be, nn, no, pa, pl, pt, pt-br, rm, ro, ro-md, ru, ru-md, sb, sk, sl, sq, sr, sv, sv-fi, th, tn, tr, ts, ua, ur, ve, vi, xh, zh-cn, zh-hk, zh-sg, zh-tw, zu.
subject string no Subject of the email template. Can be up to 255 characters.
message string no Plain or HTML body of the email template message. Can be up to 10MB of content.
senderName string no Name of the email sender.
senderEmail string no Email of the sender. Pass an empty string to clear a previously set value.
replyToEmail string no Reply to email. Pass an empty string to clear a previously set value.
replyToName string no Reply to name.

Access: API key with the templates.write scope.

@owbase/node
import { Client, Project, ProjectEmailTemplateId, ProjectEmailTemplateLocale } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateEmailTemplate({
templateId: ProjectEmailTemplateId.Verification,
locale: ProjectEmailTemplateLocale.Af, // optional
subject: '<SUBJECT>', // optional
message: '<MESSAGE>', // optional
senderName: '<SENDER_NAME>', // optional
senderEmail: '[email protected]', // optional
replyToEmail: '[email protected]', // optional
replyToName: '<REPLY_TO_NAME>', // optional
});

Get project email template

GET /project/templates/email/{templateId} · method page

SDK: @owbase/node only

Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.

Parameter Type Required Description
templateId ProjectEmailTemplateId yes Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification, otpRecovery Values: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification, otpRecovery.
locale ProjectEmailTemplateLocale no Custom email template locale. If left empty, the fallback locale (en) will be used. Values: af, ar-ae, ar-bh, ar-dz, ar-eg, ar-iq, ar-jo, ar-kw, ar-lb, ar-ly, ar-ma, ar-om, ar-qa, ar-sa, ar-sy, ar-tn, ar-ye, as, az, be, bg, bh, bn, bs, ca, cs, cy, da, de, de-at, de-ch, de-li, de-lu, el, en, en-au, en-bz, en-ca, en-gb, en-ie, en-jm, en-nz, en-tt, en-us, en-za, eo, es, es-ar, es-bo, es-cl, es-co, es-cr, es-do, es-ec, es-gt, es-hn, es-mx, es-ni, es-pa, es-pe, es-pr, es-py, es-sv, es-uy, es-ve, et, eu, fa, fi, fo, fr, fr-be, fr-ca, fr-ch, fr-lu, ga, gd, he, hi, hr, hu, id, is, it, it-ch, ja, ji, ko, ku, lt, lv, mk, ml, ms, mt, nb, ne, nl, nl-be, nn, no, pa, pl, pt, pt-br, rm, ro, ro-md, ru, ru-md, sb, sk, sl, sq, sr, sv, sv-fi, th, tn, tr, ts, ua, ur, ve, vi, xh, zh-cn, zh-hk, zh-sg, zh-tw, zu.

Access: API key with the templates.read scope.

@owbase/node
import { Client, Project, ProjectEmailTemplateId, ProjectEmailTemplateLocale } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getEmailTemplate({
templateId: ProjectEmailTemplateId.Verification,
locale: ProjectEmailTemplateLocale.Af, // optional
});

List project variables

GET /project/variables · method page

SDK: @owbase/node only

Get a list of all project environment variables.

Parameter Type Required Description
queries string[] no Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, resourceType, resourceId, secret
total boolean no When set to false, the total count returned will be 0 and will not be calculated.

Access: API key with the project.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.listVariables({
queries: [], // optional
total: false, // optional
});

Create project variable

POST /project/variables · method page

SDK: @owbase/node only

Create a new project environment variable. These variables can be accessed by all functions and sites in the project.

Parameter Type Required Description
variableId string yes Variable unique ID. Choose a custom ID or generate a random ID with ID.unique(). Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can’t start with a special char. Max length is 36 chars.
key string yes Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
value string yes Variable value. Max length: 8192 chars.
secret boolean no Secret variables can be updated or deleted, but only projects can read them during build and runtime.
description string no Optional description for the variable.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.createVariable({
variableId: '<VARIABLE_ID>',
key: '<KEY>',
value: '<VALUE>',
secret: false, // optional
description: '<DESCRIPTION>', // optional
});

Get project variable

GET /project/variables/{variableId} · method page

SDK: @owbase/node only

Get a variable by its unique ID.

Parameter Type Required Description
variableId string yes Variable unique ID.

Access: API key with the project.read scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.getVariable({
variableId: '<VARIABLE_ID>',
});

Update project variable

PUT /project/variables/{variableId} · method page

SDK: @owbase/node only

Update variable by its unique ID.

Parameter Type Required Description
variableId string yes Variable unique ID.
key string no Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
value string no Variable value. Max length: 8192 chars.
secret boolean no Secret variables can be updated or deleted, but only projects can read them during build and runtime.
description string no Optional description for the variable.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateVariable({
variableId: '<VARIABLE_ID>',
key: '<KEY>', // optional
value: '<VALUE>', // optional
secret: false, // optional
description: '<DESCRIPTION>', // optional
});

Delete project variable

DELETE /project/variables/{variableId} · method page

SDK: @owbase/node only

Delete a variable by its unique ID.

Parameter Type Required Description
variableId string yes Variable unique ID.

Access: API key with the project.write scope.

@owbase/node
import { Client, Project } from '@owbase/node';
const client = new Client()
.setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.deleteVariable({
variableId: '<VARIABLE_ID>',
});

The descriptions on this page come from the server API specification (BSD-3-Clause license), and the examples come from the SDK generator (MIT license). The full notices are in the NOTICE file of the @owbase/web and @owbase/node packages.

Was this page helpful?