Cells
Create a cell
Create a new cell with a unique name in your organization
POST
/v1/cellsHTTP client
Set up your HTTP client with the auth header before calling the API. Match the authentication type shown above.
const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json',
};const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json',
};Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const res = await fetch('https://cells-api.mudbase.dev/v1/cells', {
method: 'POST',
headers: HEADERS,
body: JSON.stringify({
"name": "my-cell",
"url_settings": {
"auth": "public"
}
}),
});
const data = await res.json();const res = await fetch('https://cells-api.mudbase.dev/v1/cells', {
method: 'POST',
headers: HEADERS,
body: JSON.stringify({
"name": "my-cell",
"url_settings": {
"auth": "public"
}
}),
});
const data = await res.json();Playground
read-onlyBuild a request example for this endpoint. Read-only: the playground does not send requests. Run the request with curl or the SDK.
No Request Yet
Send a request to see the full inspector
Authentication
Requires Bearer key
Note
Include your API key in the
Authorization: Bearer YOUR_KEY header. View authentication guide →Request Body
json
{
"name": "my-cell",
"url_settings": {
"auth": "public"
}
}{
"name": "my-cell",
"url_settings": {
"auth": "public"
}
}Responses
201Created
json
{
"created_at": "2024-01-15T10:30:00Z",
"environment_version": "v0.0.1-rc48",
"id": "cell-01234567-89ab-cdef-0123-456789abcdef",
"labels": [
"production"
],
"last_running_at": "2024-01-15T14:20:00Z",
"last_warming_at": "2024-01-15T14:22:00Z",
"name": "my-dev-cell",
"organization": "my-org",
"services": {
"api": {
"endpoint": {
"port": 8080,
"protocol": "http"
},
"exposure": "authenticated",
"grants": [],
"internal_url": "http://api--my-cell--default.cell.internal",
"public_url": "https://api--my-cell--default--my-org.cells.app"
}
},
"status": "cold",
"updated_at": "2024-01-15T14:22:00Z",
"url": "https://name-random-alphanumeric.cells.app",
"url_settings": {
"auth": "cell"
},
"version": "v0.0.1-rc48"
}{
"created_at": "2024-01-15T10:30:00Z",
"environment_version": "v0.0.1-rc48",
"id": "cell-01234567-89ab-cdef-0123-456789abcdef",
"labels": [
"production"
],
"last_running_at": "2024-01-15T14:20:00Z",
"last_warming_at": "2024-01-15T14:22:00Z",
"name": "my-dev-cell",
"organization": "my-org",
"services": {
"api": {
"endpoint": {
"port": 8080,
"protocol": "http"
},
"exposure": "authenticated",
"grants": [],
"internal_url": "http://api--my-cell--default.cell.internal",
"public_url": "https://api--my-cell--default--my-org.cells.app"
}
},
"status": "cold",
"updated_at": "2024-01-15T14:22:00Z",
"url": "https://name-random-alphanumeric.cells.app",
"url_settings": {
"auth": "cell"
},
"version": "v0.0.1-rc48"
}400Invalid request parameters
401Missing or invalid authentication
403Forbidden: a plan allowance or the free trial credit is used up. The error name is in the body (cpu_hours_exhausted, memory_hours_exhausted, storage_limit_reached, egress_limit_reached, trial_credit_exhausted or trial_expired).
json
{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}429Too Many Requests: the concurrent cell limit is reached (concurrency_limit_reached), or the request is throttled. Retry after the number of seconds in Retry-After.
json
{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}503Service Unavailable: the service cannot handle the request. Retry after the number of seconds in Retry-After.
Errors
| Code | Meaning |
|---|---|
400 | Invalid request parameters |
401 | Missing or invalid authentication |
403 | Forbidden: a plan allowance or the free trial credit is used up. The error name is in the body (cpu_hours_exhausted, memory_hours_exhausted, storage_limit_reached, egress_limit_reached, trial_credit_exhausted or trial_expired). |
429 | Too Many Requests: the concurrent cell limit is reached (concurrency_limit_reached), or the request is throttled. Retry after the number of seconds in Retry-After. |
503 | Service Unavailable: the service cannot handle the request. Retry after the number of seconds in Retry-After. |