api
API Reference
Complete documentation for the Gola REST API. All endpoints require authentication unless noted.
dns
https://api.gola.work/api/
POST
/auth
Authenticate with email and password to receive a bearer token for subsequent requests.
Headers
Content-Type: application/json
Body
{
"email": "user@example.com",
"password": "your_password"
}
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_xxx",
"email": "user@example.com"
}
}
curl -X POST https://api.gola.work/api/auth \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "your_password"
}'
GET
/me
Retrieve the authenticated user's profile information.
Authorization: Bearer {token}
Content-Type: application/json
Accept: application/json
{
"id": "usr_xxx",
"email": "user@example.com",
"name": "John Doe"
}
curl https://api.gola.work/api/me \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json"
GET
/teams
List all teams the authenticated user belongs to.
Authorization: Bearer {token}
Accept: application/json
{
"data": [
{
"id": "01jcza15223n6tz8hbyrgmgtmfb",
"name": "My Team",
"slug": "8783c01"
}
]}
curl https://api.gola.work/api/teams \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/apps
List all applications belonging to a specific team.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team slug. |
Authorization: Bearer {token}
Accept: application/json
{
"data": [
{
"id": "3ad40231",
"name": "My App",
"role": "0"
}
]}
curl https://api.gola.work/api/team/{team}/apps \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/app/{app}
Retrieve a specific application within a team.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team slug. |
| app | string | The application identifier. |
{
"id": "07c1e422",
"name": "My App",
"meta": {
"roles": [
{
"idx": 1,
"meta": [
"01m11n3gvb1kwbrvqtmsrj1vjq_view",
"01m11n3gvb1kwbrvqtmsrj1vjq_add",
"01m11n3gvb1kwbrvqtmsrj1vjq_edit",
"01m11n3gvb1kwbrvqtmsrj1vjq_del",
],
"name": "Admin",
"users": [],
}]},
}
curl https://api.gola.work/api/team/{team}/app/{app} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/app/{app}/model
List all models belonging to a specific application.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
{
"data": [
{
"id": "01jfjh6sj3bp2ve7wj5mbq4123",
"name": "UserModel"
}
]}
curl https://api.gola.work/api/team/{team}/app/{app}/model \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/app/{app}/model/{model}
Retrieve a specific model within an application.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
{
"id": "model_xxx",
"name": "UserModel",
"fields": [
{ "name": "name", "type": "string" },
{ "name": "data_2", "type": "number" },
{ "name": "data_3", "type": "number" }
]
}
| Code | Type | Usage |
|---|---|---|
| string | string | |
| decimal | Decimal Number | |
| number | Integer Number | |
| user | Relation to user record | |
| relation | Relation to other model | |
| structure | Table Field with pre-defined structure | |
| text | Text Field | |
| select | Drop Down List | |
| date | Date field | |
| datetime | Date and Time field | |
| file | Files upload | |
| image | Image upload | |
| richtext | Rich Text Editor | |
| embed | Embeddable URL |
curl https://api.gola.work/api/team/{team}/app/{app}/model/{model} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/app/{app}/model/{model}/data
List all records within a specific model.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
| Parameter | Type | Description |
|---|---|---|
| tableSearch | string | Keyword to search |
| tableSortColumn | string | Field name to sort by |
| tableSortDirection | string | Sort Direction (asc or desc) |
| tableFilters[meta][fields][FIELD_INDEX][value] | string | Filter By field index (i.e. 2 from "data_2" field, or 3 from "data_3") |
{
"current_page": 1,
"data": [
{
"id": "01jr0289aanzpzg9yc721z1431",
"created_by": "01jbv18r65gbnrcefvnr4ng431",
"updated_by": "01jbv18r65gbnrcefvnr4ng431",
"name": "Record",
"created_at": "2026-04-04T09:31:31.000000Z",
"updated_at": "2026-09-18T08:11:01.000000Z",
"data_1": "Download One",
"data_3": [
"0"
],
"data_4": [],
"data_5": [
"01jr03v2kvmzps5b50x8p96rte"
],
"data_6": [
"2"
],
}
],
"first_page_url": "",
"from": 1,
"next_page_url": null,
"path": "",
"per_page": 15,
"prev_page_url": null,
"to": 1
}
curl https://api.gola.work/api/team/{team}/app/{app}/model/{model}/data \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
GET
/team/{team}/app/{app}/model/{model}/data/{data}
Retrieve a specific record within a model.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
| data | string | The record identifier. |
{
"id": "data_xxx",
"name": "API_DATA",
"data_2": 324,
"data_3": 456,
"created_at": "2026-01-01T00:00:00Z"
}
curl https://api.gola.work/api/team/{team}/app/{app}/model/{model}/data/{data} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"
POST
/team/{team}/app/{app}/model/{model}/data
Create a new record within a specific model.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
Headers
Authorization: Bearer {token}
Content-Type: application/json
Body
{
"name": "API_DATA",
"data_2": 324,
"data_3": 456
}
{
"id": "data_xxx",
"name": "API_DATA",
"data_2": 324,
"data_3": 456
}
curl -X POST https://api.gola.work/api/team/{team}/app/{app}/model/{model}/data \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "API_DATA",
"data_2": 324,
"data_3": 456
}'
PUT
/team/{team}/app/{app}/model/{model}/data/{data}
Update an existing record within a model.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
| data | string | The record identifier. |
{
"name": "updated@example.com",
"4": [
"01jjex8jetz4s7gbk27tzxq0s5"
]
}
{
"id": "data_xxx",
"name": "updated@example.com",
"4": ["01jjex8jetz4s7gbk27tzxq0s5"]
}
curl -X PUT https://api.gola.work/api/team/{team}/app/{app}/model/{model}/data/{data} \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"name": "updated@example.com",
"4": ["01jjex8jetz4s7gbk27tzxq0s5"]
}'
DELETE
/team/{team}/app/{app}/model/{model}/data/{data}
Delete a specific record within a model.
| Parameter | Type | Description |
|---|---|---|
| team | string | The team identifier. |
| app | string | The application identifier. |
| model | string | The model identifier. |
| data | string | The record identifier. |
{
"message": "Record deleted successfully"
}
curl -X DELETE https://api.gola.work/api/team/{team}/app/{app}/model/{model}/data/{data} \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"