Records
Read, add, change and delete the records of a table, and upload or download the files in its Blob fields.
Background and examples: Getting Started
List records
/v1/data/table
Gets records for a table with optional filtering, sorting, and joining.
Parameters
-
projectuuid query required Project GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required Table ID (e.g., 123).
-
Offsetinteger (int64) query Number of records to skip for pagination (default: 0). Example: 0
-
Takeinteger (int64) query Maximum number of records to return. Example: 100
-
JoinQuerystring query Join format: "tableA;fieldA=tableB;fieldB", joining tableA.fieldA to tableB.fieldB. Separate several joins with "&" (URL-encoded as %26). Example: "orders;customer=customers;id"
-
WhereQuerystring query Filter format: "field;operator;value". Join clauses with "&" (and, URL-encoded as %26) or "|" (or); "and" binds tighter than "or", as in SQL. Operators: = or equal, != (also <>, =!, ><) or not_equal, > or largerthan (alias lt), < or smallerthan (alias st), >= (also =>) or largerthan_equal, <= (also =<) or smallerthan_equal, like, notlike, in, notin (comma-separated values), null (value true for "is null", false for "is not null"). Unknown fields are refused. Example: "age;>=;18&name;like;J%"
-
SortQuerystring query Sort format: "field;direction" (asc/desc). Separate several sorts with "|". Example: "name;asc"
-
distinctboolean query Return only distinct records (default: false).
-
selectstring query Semicolon-separated field names (e.g., "id;name;email"). Returns all fields if omitted.
Responses
- 200 Returns the queried records.
- 400 If the queries provided could not be parsed.
- 401 If the user is not signed in.
- 404 If the given tables or fields could not be found.
- 500 If something went wrong in the database.
Request
curl -X GET 'https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.get(
"https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_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/data/table?project=PROJECT_ID&table=TABLE_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/data/table?project=PROJECT_ID&table=TABLE_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Response 200
{
"messages": [],
"isSuccess": true,
"data": [
{
"id": 1,
"name": "Ada Lovelace",
"city": "Ghent"
}
],
"count": 1
}
Add records
/v1/data/table
Adds one or more records to the given table. This endpoint supports bulk insertion of multiple records in a single request.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table to insert records into. Format: long integer (e.g., 123).
Request body application/json
The request body containing the records to create. Each record is a dictionary of field names to values. Field names must match existing table columns. The 'id' field is typically auto-generated and should not be included. If the Records array is empty, the endpoint returns immediately without error.
-
recordsobject[] required The records to add, each an object of field names and values. Leave out id: it is assigned for you.
Responses
- 201 Returns the newly created records with their assigned IDs.
- 401 If the user is not signed in.
- 404 If the given tables or fields could not be found.
- 500 If something went wrong in the database.
Request
curl -X POST 'https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"records": [
{
"name": "Ada Lovelace",
"city": "Ghent"
},
{
"name": "Grace Hopper",
"city": "New York"
}
]
}'
const response = await fetch("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"records": [
{
"name": "Ada Lovelace",
"city": "Ghent"
},
{
"name": "Grace Hopper",
"city": "New York"
}
]
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json={
"records": [
{
"name": "Ada Lovelace",
"city": "Ghent",
},
{
"name": "Grace Hopper",
"city": "New York",
},
],
},
)
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("""
{
"records": [
{
"name": "Ada Lovelace",
"city": "Ghent"
},
{
"name": "Grace Hopper",
"city": "New York"
}
]
}
""", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_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(
'{' +
' "records": [' +
' {' +
' "name": "Ada Lovelace",' +
' "city": "Ghent"' +
' },' +
' {' +
' "name": "Grace Hopper",' +
' "city": "New York"' +
' }' +
' ]' +
'}',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Post('https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
Response 201
{
"messages": [],
"isSuccess": true,
"data": [
{
"id": 1,
"name": "Ada Lovelace",
"city": "Ghent"
}
],
"count": 1
}
Update records
/v1/data/table
Updates one or more records in the given table based on their IDs. This endpoint supports bulk updates and can update all records if forced.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table containing the records to update. Format: long integer (e.g., 123).
-
forceboolean query Set to true to update ALL records in the table when no IDs are provided. Default: false. When false and no IDs are specified, the request is rejected with a safety warning message.
Request body application/json
The request body containing the record data and optional ID list.
- Record: A dictionary of field names to new values. Only the fields included will be updated.
- IdList (optional): Array of record IDs to update. If not provided, the endpoint looks for an 'id' field in the Record object. If neither is provided and force=false, returns a 400 error to prevent accidental bulk updates.
-
idListobject[] The ids of the records to change. Without it, the id in record is used.
-
recordobject required Field names and their new values. Fields you leave out keep their value.
Responses
- 200 Returns the updated records.
- 401 If the user is not signed in.
- 404 If the given tables or fields could not be found.
- 500 If something went wrong in the database.
Request
curl -X PUT 'https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"idList": [
1,
2
],
"record": {
"city": "Brussels"
}
}'
const response = await fetch("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID", {
method: "PUT",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"idList": [
1,
2
],
"record": {
"city": "Brussels"
}
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.put(
"https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json={
"idList": [1, 2],
"record": {
"city": "Brussels",
},
},
)
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("""
{
"idList": [
1,
2
],
"record": {
"city": "Brussels"
}
}
""", Encoding.UTF8, "application/json");
var response = await client.PutAsync("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_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(
'{' +
' "idList": [' +
' 1,' +
' 2' +
' ],' +
' "record": {' +
' "city": "Brussels"' +
' }' +
'}',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Put('https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
Response 200
{
"messages": [],
"isSuccess": true,
"data": [
{
"id": 1,
"name": "Ada Lovelace",
"city": "Ghent"
}
],
"count": 1
}
Delete a record
/v1/data/table
Deletes a single record from the given table by its ID.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table to delete from. Format: long integer (e.g., 123).
-
recordinteger (int64) query The ID of the specific record to delete. Format: long integer (e.g., 456). If not provided, the request returns a 400 Bad Request error.
Responses
- 200 Returns success if the record was deleted.
- 401 If the user is not signed in.
- 404 If the given table or record could not be found.
- 500 If something went wrong in the database.
Request
curl -X DELETE 'https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID", {
method: "DELETE",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.delete(
"https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_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.DeleteAsync("https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_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.Delete('https://api.stellards.io/v1/data/table?project=PROJECT_ID&table=TABLE_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;
Download a file
/v1/data/table/blob
Download a file from a blob field as a stream. This endpoint is specifically designed for retrieving binary data (images, files, etc.) stored in Blob fields.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table containing the record. Format: long integer (e.g., 123).
-
recordinteger (int64) query required The ID of the specific record containing the blob data. Format: long integer (e.g., 456).
-
fieldstring query required The name of the blob field to download. This field must be of type Blob. The field name will be URL-decoded automatically. Format: string (e.g., "profile_image" or "attachment").
Responses
- 200 Returns the file stream for the blob data.
- 400 If the field is not of type Blob.
- 401 If the user is not signed in.
- 404 If the table, field, record, or file could not be found.
- 500 If something went wrong in the database.
Request
curl -X GET 'https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-o photo.jpg
const response = await fetch("https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME", {
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const file = await response.blob();
import requests
response = requests.get(
"https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
)
with open("photo.jpg", "wb") as file:
file.write(response.content)
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/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME");
await using var file = File.Create("photo.jpg");
await response.Content.CopyToAsync(file);
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient;
var
Client: THTTPClient;
Response: IHTTPResponse;
Target: TFileStream;
begin
Client := THTTPClient.Create;
Target := TFileStream.Create('photo.jpg', fmCreate);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Get('https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME', Target);
Writeln(Response.StatusCode);
finally
Target.Free;
Client.Free;
end;
end;
Upload a file
/v1/data/table/blob
Upload a file to a blob field. This endpoint allows uploading binary data (images, files, etc.) to Blob fields. Maximum file size is 1MB.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table containing the record to update. Format: long integer (e.g., 123).
-
recordinteger (int64) query required The ID of the specific record to update with the uploaded file. Format: long integer (e.g., 456).
-
fieldstring query required The name of the blob field to update. This field must be of type Blob. Format: string (e.g., "profile_image" or "attachment").
Request body multipart/form-data
-
datafile The file, as the form field data. At most 1 MB.
Responses
- 200 Returns success if the file was uploaded and stored successfully.
- 400 If the file size exceeds 1MB, the field is not a blob type, or the request is malformed.
- 401 If the user is not signed in.
- 404 If the table, field, or record could not be found.
- 500 If something went wrong in the database.
Request
curl -X POST 'https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-F 'data=@photo.jpg'
const form = new FormData();
form.append("data", file); // a File or Blob, at most 1 MB
const response = await fetch("https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
body: form,
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
files={"data": open("photo.jpg", "rb")},
)
print(response.json())
using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ACCESS_TOKEN");
using var body = new MultipartFormDataContent();
body.Add(new StreamContent(File.OpenRead("photo.jpg")), "data", "photo.jpg");
var response = await client.PostAsync("https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME", body);
Console.WriteLine(await response.Content.ReadAsStringAsync());
uses
System.Classes, System.SysUtils, System.Net.HttpClient, System.Net.URLClient, System.Net.Mime;
var
Client: THTTPClient;
Response: IHTTPResponse;
Form: TMultipartFormData;
begin
Client := THTTPClient.Create;
Form := TMultipartFormData.Create;
Form.AddFile('data', 'photo.jpg');
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Response := Client.Post('https://api.stellards.io/v1/data/table/blob?project=PROJECT_ID&table=TABLE_ID&record=RECORD_ID&field=FIELD_NAME', Form);
Writeln(Response.ContentAsString);
finally
Form.Free;
Client.Free;
end;
end;
Delete several records
/v1/data/table/delete
Deletes multiple records from the given table by their IDs. This endpoint supports bulk deletion of records in a single request.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table to delete from. Format: long integer (e.g., 123).
Request body application/json
An array of record IDs to delete, provided in the request body as a JSON array of numbers or numeric strings. . If the array is empty or holds anything that is not a whole number, the request returns a 400 Bad Request error. Example body: [123, 456, 789]
Responses
- 200 Returns success if the records were deleted.
- 401 If the user is not signed in.
- 404 If the given table could not be found.
- 500 If something went wrong in the database.
Request
curl -X POST 'https://api.stellards.io/v1/data/table/delete?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '[
123,
456,
789
]'
const response = await fetch("https://api.stellards.io/v1/data/table/delete?project=PROJECT_ID&table=TABLE_ID", {
method: "POST",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify([
123,
456,
789
]),
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://api.stellards.io/v1/data/table/delete?project=PROJECT_ID&table=TABLE_ID",
headers={"Authorization": "Bearer ACCESS_TOKEN"},
json=[123, 456, 789],
)
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("""
[
123,
456,
789
]
""", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.stellards.io/v1/data/table/delete?project=PROJECT_ID&table=TABLE_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(
'[' +
' 123,' +
' 456,' +
' 789' +
']',
TEncoding.UTF8);
try
Client.CustomHeaders['Authorization'] := 'Bearer ACCESS_TOKEN';
Client.ContentType := 'application/json';
Response := Client.Post('https://api.stellards.io/v1/data/table/delete?project=PROJECT_ID&table=TABLE_ID', Body);
Writeln(Response.ContentAsString);
finally
Body.Free;
Client.Free;
end;
end;
Delete all records
/v1/data/table/clear
Deletes all records from the given table. WARNING: This is a destructive operation that removes ALL records from the specified table without any confirmation.
Parameters
-
projectuuid query required The GUID of the project containing the table. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6").
-
tableinteger (int64) query required The ID of the table to clear all records from. Format: long integer (e.g., 123). All records in this table will be permanently deleted.
Responses
- 200 Returns success if all records were deleted from the table.
- 401 If the user is not signed in.
- 404 If the given table could not be found.
- 500 If something went wrong in the database.
Request
curl -X DELETE 'https://api.stellards.io/v1/data/table/clear?project=PROJECT_ID&table=TABLE_ID' \
-H 'Authorization: Bearer ACCESS_TOKEN'
const response = await fetch("https://api.stellards.io/v1/data/table/clear?project=PROJECT_ID&table=TABLE_ID", {
method: "DELETE",
headers: {
Authorization: "Bearer ACCESS_TOKEN",
},
});
const result = await response.json();
console.log(result);
import requests
response = requests.delete(
"https://api.stellards.io/v1/data/table/clear?project=PROJECT_ID&table=TABLE_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.DeleteAsync("https://api.stellards.io/v1/data/table/clear?project=PROJECT_ID&table=TABLE_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.Delete('https://api.stellards.io/v1/data/table/clear?project=PROJECT_ID&table=TABLE_ID');
Writeln(Response.ContentAsString);
finally
Client.Free;
end;
end;