Account
The signed-in user's own account and permissions.
Check the API
/v1/ping
Simple health check endpoint that responds with "pong". Used to verify the API is running and responsive.
No token needed.
Responses
- 200 Service is healthy and responsive. Returns "pong".
Request
curl -X GET 'https://api.stellards.io/v1/ping'
const response = await fetch("https://api.stellards.io/v1/ping", {
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/ping",
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
var response = await client.GetAsync("https://api.stellards.io/v1/ping");
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
Response := Client.Get('https://api.stellards.io/v1/ping');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Get your permissions
/v1/user/permissions
Retrieves the authenticated user's permissions for a specific project. Returns the complete permission set including project-level, schema-level, and table-specific permissions. Project owners and system administrators receive full permissions automatically.
Parameters
-
projectIduuid query required The GUID of the project to query permissions for. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6"). Query string parameter.
Responses
- 200 Successfully retrieved user permissions. Response contains complete permission structure with project, schema, and table-level access rights.
- 400 Bad request. Invalid project GUID format.
- 401 Unauthorized. The user is not authenticated or lacks required User role.
- 403 Forbidden. User does not have any role assigned for this project, or the project is inactive.
- 500 Internal server error. An unexpected error occurred while retrieving permissions.
Request
curl -X GET 'https://api.stellards.io/v1/user/permissions?projectId=PROJECT_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/user/permissions?projectId=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/user/permissions?projectId=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/user/permissions?projectId=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/user/permissions?projectId=PROJECT_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"isSuccess": true,
"messages": []
}
Get your account
/v1/user
Retrieves the authenticated user's account information including username and email.
Responses
- 200 Successfully retrieved user account information. Response contains username and email address.
- 401 Unauthorized. The user is not authenticated or lacks required User role.
- 500 Internal server error. An unexpected error occurred while retrieving user information.
Request
curl -X GET 'https://api.stellards.io/v1/user' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/user", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/user",
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/user");
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/user');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"isSuccess": true,
"messages": []
}