Projects & plans
Read and update your projects, and see the limits and usage of a project's plan.
List or get projects
/v1/schema/project
Retrieves project(s) accessible to the authenticated user. Can fetch a specific project by GUID or all projects the user has access to. Includes both active and inactive projects (ignoreActive: true parameter).
Parameters
-
projectuuid query The GUID of a specific project to retrieve. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6"). Query string parameter. When omitted, returns all projects accessible to the user. When provided, returns only the specified project.
Responses
- 200 Successfully retrieved project(s). Response contains project details including project ID, name, description, creation date, owner information, active status, and subscription tier.
- 400 Bad request. Invalid project GUID format.
- 401 Unauthorized. The user is not authenticated.
- 403 Forbidden. The user does not have access to any projects or the specified project.
- 404 Not found. The specified project could not be found or the user does not have access to it.
- 500 Internal server error. An unexpected error occurred while retrieving project information.
Request
curl -X GET 'https://api.stellards.io/v1/schema/project' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/schema/project", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/schema/project",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/schema/project");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/schema/project');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"isSuccess": true,
"messages": []
}
Update a project
/v1/schema/project
Updates a project's metadata including name, description, and settings. Allows project owners/administrators to modify project configuration.
Parameters
-
projectuuid query required The GUID of the project to update. Format: GUID. Query string parameter.
Request body application/json
Updated project details in request body containing new name, description, or other editable properties.
-
namestring required The project's name.
-
descriptionstring A description for your own reference.
-
isMultitenantboolean required Whether every user only sees the rows they wrote, in every table.
-
allowNewUsersboolean required Whether you can invite people who don't have a Stellar DataStore account yet.
Responses
- 200 Project updated successfully. Response contains complete updated project details including updated name, description, modification date, and all project settings.
- 400 Bad request. New project name conflicts with another project owned by the user.
- 401 Unauthorized. The user is not authenticated.
- 403 Forbidden. User does not have Update Project permission (Permission ID: 1) for this project.
- 404 Not found. The specified project could not be found or user does not have access.
- 500 Internal server error. Database error occurred during project update.
Request
curl -X PUT 'https://api.stellards.io/v1/schema/project?project=PROJECT_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Webshop",
"description": "Orders and customers of the webshop",
"isMultitenant": false,
"allowNewUsers": false
}'
const response = await fetch("https://api.stellards.io/v1/schema/project?project=PROJECT_ID", {
method: "PUT",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Webshop",
"description": "Orders and customers of the webshop",
"isMultitenant": false,
"allowNewUsers": false
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.put(
"https://api.stellards.io/v1/schema/project?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json={
"name": "Webshop",
"description": "Orders and customers of the webshop",
"isMultitenant": False,
"allowNewUsers": False,
},
)
print(response.json())
using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var body = new StringContent("""
{
"name": "Webshop",
"description": "Orders and customers of the webshop",
"isMultitenant": false,
"allowNewUsers": false
}
""", Encoding.UTF8, "application/json");
var response = await client.PutAsync("https://api.stellards.io/v1/schema/project?project=PROJECT_ID", body);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
Body: TStringStream;
begin
Client := THTTPClient.Create;
Body := TStringStream.Create(
'{' +
' "name": "Webshop",' +
' "description": "Orders and customers of the webshop",' +
' "isMultitenant": false,' +
' "allowNewUsers": false' +
'}',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Put('https://api.stellards.io/v1/schema/project?project=PROJECT_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
Response 200
{
"messages": [],
"isSuccess": true,
"data": [
{
"id": 412,
"name": "Customers",
"description": "Everyone who placed an order",
"isMultitenant": false
}
]
}
Get the plan
/v1/project-tier
Retrieves the subscription tier information for a specific project, including the available features and limits associated with that tier. This endpoint provides details about the project's current subscription plan, including resource limits, feature availability, and tier-specific configurations.
Parameters
-
projectuuid query required The GUID of the project to retrieve tier information for. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6"). This identifies which project's subscription tier details to fetch.
Responses
- 200 Successfully retrieved project tier information. Response includes: tier ID, name, description, resource limits (max tables, max records per table, max API calls per month, max storage), enabled features, and billing cycle information.
- 400 Bad request. Invalid project GUID format.
- 401 Unauthorized. The user is not authenticated.
- 403 Forbidden. The user does not have permission to view tier information for this project.
- 404 Not found. The specified project could not be found, or the project does not have an associated tier configuration.
- 500 Internal server error. An unexpected error occurred while retrieving tier information.
Request
curl -X GET 'https://api.stellards.io/v1/project-tier?project=PROJECT_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/project-tier?project=PROJECT_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/project-tier?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/project-tier?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/project-tier?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"isSuccess": true,
"messages": []
}
Get plan usage
/v1/project-tier/current
Retrieves the current usage statistics and tier information for a specific project, combining both the tier limits and actual usage metrics. This endpoint is useful for displaying usage dashboards, monitoring resource consumption, and determining if the project is approaching tier limits.
Parameters
-
projectuuid query required The GUID of the project to retrieve current usage and tier information for. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6"). This identifies which project's current state to analyze.
Responses
- 200 Successfully retrieved current project tier and usage information. Response includes: tier configuration (limits and features), current usage metrics (number of tables, total records, API calls this month, storage used), percentage of limits consumed, and any warnings if approaching tier limits.
- 400 Bad request. Invalid project GUID format.
- 401 Unauthorized. The user is not authenticated.
- 403 Forbidden. The user does not have permission to view usage information for this project.
- 404 Not found. The specified project could not be found, or tier/usage information is not available.
- 500 Internal server error. An unexpected error occurred while calculating usage statistics or retrieving tier information.
Request
curl -X GET 'https://api.stellards.io/v1/project-tier/current?project=PROJECT_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/project-tier/current?project=PROJECT_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/project-tier/current?project=PROJECT_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
var response = await client.GetAsync("https://api.stellards.io/v1/project-tier/current?project=PROJECT_ID");
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
begin
Client := THTTPClient.Create;
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/project-tier/current?project=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"isSuccess": true,
"messages": []
}