Projects
Get project CAPTCHA configuration
Get CAPTCHA configuration for a project. This is a public endpoint that returns the site key and settings needed for frontend integration. Secret key is never returned.
GET
/api/projects/{orgId}/projects/{id}/auth/captchaSDK setup
Create a client instance. No authentication is required for this endpoint.
import { Configuration, ProjectsApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const projects = new ProjectsApi(configuration);import { Configuration, ProjectsApi } from 'mudbase-sdk';
const configuration = new Configuration({
basePath: 'https://cloud.mudbase.dev',
});
const projects = new ProjectsApi(configuration);Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const { data: result } = await projects.getProjectCaptchaConfig("org_2KHoEE9lxD", "uEqeODdArAALCSUc");const { data: result } = await projects.getProjectCaptchaConfig("org_2KHoEE9lxD", "uEqeODdArAALCSUc");Playground
liveTest this endpoint with your own credentials. Your requests will be sent to the live API.
No Request Yet
Send a request to see the full inspector
Authentication
Public — No Auth Required
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
orgId | string | Yes | Organization ID |
id | string | Yes | Project ID |
Responses
200CAPTCHA configuration
json
{
"captcha": {
"enabled": true,
"version": "v3",
"siteKey": "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
"minScore": 0.5
}
}{
"captcha": {
"enabled": true,
"version": "v3",
"siteKey": "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",
"minScore": 0.5
}
}404—
500—
Errors
| Code | Meaning |
|---|---|
404 | — |
500 | — |