API reference
Sign-in clients
/ v1/ orgs/ :orgId/ projects/ :projectId/ oauth-clientsThe project's sign-in clients (never their secrets), with the issuer and its discovery URL.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- projects:read
Path parameters
orgIdOrganization id (
org_…).projectIdServerless App Service id (
prj_…).
Errors
404Serverless App Service not found
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients' \
-H "Authorization: Bearer $CACTIVE_TOKEN"Response 200
{
issuer: string
discovery: string
clients: {
createdAt?: number
updatedAt?: number
lastUsedAt?: number
secretExpiresAt?: number
assignmentRequired: boolean
clientId: string
name: string
redirectUris: string[]
subjectType: "public" | "pairwise"
}[]
}/ v1/ orgs/ :orgId/ projects/ :projectId/ oauth-clientsRegisters a client; the secret is in this response only.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- projects:write
Path parameters
orgIdOrganization id (
org_…).projectIdServerless App Service id (
prj_…).
Request body
namestringrequired1–64 characters. Trimmed.
redirectUrisstring[]required1–10 items. Each 1–2,048 characters, trimmed.
subjectType"pairwise" | "public"Default
"pairwise".clientUristringUp to 512 characters. Trimmed.
logoUristringUp to 512 characters. Trimmed.
policyUristringUp to 512 characters. Trimmed.
tosUristringUp to 512 characters. Trimmed.
Errors
400A Serverless App Service can have up to 10 sign-in clients.404Serverless App Service not found
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"redirectUris": [
"example"
]
}'Response 201
{
client: {
createdAt?: number
updatedAt?: number
lastUsedAt?: number
secretExpiresAt?: number
assignmentRequired: boolean
clientId: string
name: string
redirectUris: string[]
subjectType: "public" | "pairwise"
}
clientSecret: string
}/ v1/ orgs/ :orgId/ projects/ :projectId/ oauth-clients/ :clientIdRenames a sign-in client or replaces its redirect URIs.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- projects:write
Path parameters
orgIdOrganization id (
org_…).projectIdServerless App Service id (
prj_…).clientIdSign-in client id (
cli_…).
Request body
namestring1–64 characters. Trimmed.
redirectUrisstring[]1–10 items. Each 1–2,048 characters, trimmed.
clientUristringUp to 512 characters. Trimmed.
logoUristringUp to 512 characters. Trimmed.
policyUristringUp to 512 characters. Trimmed.
tosUristringUp to 512 characters. Trimmed.
Also checked: Nothing to update.
Errors
404Client not found
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"redirectUris": [
"example"
],
"clientUri": "https://example.com"
}'Response 200
{
client: {
createdAt?: number
updatedAt?: number
lastUsedAt?: number
secretExpiresAt?: number
assignmentRequired: boolean
clientId: string
name: string
redirectUris: string[]
subjectType: "public" | "pairwise"
}
}/ v1/ orgs/ :orgId/ projects/ :projectId/ oauth-clients/ :clientId/ secretReplaces the secret (the old one stops working at once); the new one is in this response only.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- projects:write
Path parameters
orgIdOrganization id (
org_…).projectIdServerless App Service id (
prj_…).clientIdSign-in client id (
cli_…).
Errors
404Client not found
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}/secret' \
-H "Authorization: Bearer $CACTIVE_TOKEN"Response 200
{
client: {
createdAt?: number
updatedAt?: number
lastUsedAt?: number
secretExpiresAt?: number
assignmentRequired: boolean
clientId: string
name: string
redirectUris: string[]
subjectType: "public" | "pairwise"
}
clientSecret: string
}/ v1/ orgs/ :orgId/ projects/ :projectId/ oauth-clients/ :clientIdDeletes the client: sign-ins and refreshes with it stop at once.
- Auth
- A person's token or an API key, as Authorization: Bearer.
- Scope
- projects:write
Path parameters
orgIdOrganization id (
org_…).projectIdServerless App Service id (
prj_…).clientIdSign-in client id (
cli_…).
Errors
404Client not found
curl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/projects/{projectId}/oauth-clients/{clientId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"Response 204 with no body