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": "b579e1fa",
    "name": "APP Name",
    "meta": {
        "roles": [
            {
                "idx": 1,
                "code": "27b67202",
                "meta": [                    
                    "01m5haktx1ykfqwg50zjd1q7x8_thread",
                    "01m5haktx1ykfqwg50zjd1q7x8_view",
                    "01m5haktx1ykfqwg50zjd1q7x8_viewa",
                    "01m5haktx1ykfqwg50zjd1q7x8_edita",
                    "01m5haktx1ykfqwg50zjd1q7x8_editas",
                    "01m5haktx1ykfqwg50zjd1q7x8_del",
                    "01m5haktx1ykfqwg50zjd1q7x8_reorder"
                ],
                "name": "Technician",
                "users": [],
                "users_roles": []
            },
            {
                "idx": 1,
                "code": "27b67202",
                "meta": [
                    "01m5hakts5xf0w0n11nx8a4pw5_add",
                    "01m5hakts5xf0w0n11nx8a4pw5_thread",
                    "01m5hakts5xf0w0n11nx8a4pw5_view",
                    "01m5hakts5xf0w0n11nx8a4pw5_viewa",
                    "01m5hakts5xf0w0n11nx8a4pw5_edita",
                    "01m5hakts5xf0w0n11nx8a4pw5_editas",
                    "01m5hakts5xf0w0n11nx8a4pw5_del",
                    "01m5hakts5xf0w0n11nx8a4pw5_reorder"
                ],
                "name": "Manager",
                "users": [
                    "user_a",
                    "user_v",
                    "user_va",
                    "user_d",
                    "user_ea",
                    "user_e",
                    "user_da"
                ],
                "users_roles": [
                    1
                ]
            }
        ]
    }
}
Field Example Description
id string
name string App name
meta
{
    "meta": {
        "roles": []
    }
}
array of app meta parameters
Field Example Description
idx 1 Role Index
meta
[
"01m5haktt8arw0261wsvh43hzz_add",
"01m5haktt8arw0261wsvh43hzz_thread",
"01m5haktt8arw0261wsvh43hzz_view",
"01m5haktt8arw0261wsvh43hzz_viewa",
"01m5haktt8arw0261wsvh43hzz_edita"
]
array of underscore divided strings, where first part is model id, second - permission. Permissions are:
  • add - Add
  • thread - Create discussion
  • view - View assigned
  • viewa - View all
  • edita - Edit all
  • editas - Edit assigned
  • del - Delete
  • reorder - Reorder
name Manager Role name
users [] Allowed users managemend actions associated to the specified user roles. Permissions are:
  • user_a - Add user
  • user_v - View added users
  • user_va - View all users
  • user_d - Delete added users
  • user_ea - Edit all users
  • user_e - Edit added users
  • user_da - Delete all users
users_roles [] Array of specified roles (role index)
curl https://api.gola.work/api/team/{team}/app/{app} \
  -H "Authorization: Bearer {token}" \
  -H "Accept: application/json"
PUT /team/{team}/app/{app}

Update an app.

Parameter Type Description
team string The team identifier.
app string The application identifier.
{
    "id": "b579e1fa",
    "name": "App Name",
    "meta": {
        "roles": [
            {
                "idx": 1,
                "code": "27b67202",
                "meta": [                    
                    "01m5haktwgjmn7jq93sstmdrx5_view",
                    "01m5haktwgjmn7jq93sstmdrx5_viewa",
                    "01m5haktwgjmn7jq93sstmdrx5_edita",
                    "01m5haktwgjmn7jq93sstmdrx5_editas",
                    "01m5haktwgjmn7jq93sstmdrx5_del",
                    "01m5haktwgjmn7jq93sstmdrx5_reorder",
                    "01m5haktx1ykfqwg50zjd1q7x8_add",
                    "01m5haktx1ykfqwg50zjd1q7x8_thread",
                    "01m5haktx1ykfqwg50zjd1q7x8_view",
                    "01m5haktx1ykfqwg50zjd1q7x8_viewa",
                    "01m5haktx1ykfqwg50zjd1q7x8_edita",
                    "01m5haktx1ykfqwg50zjd1q7x8_editas",
                    "01m5haktx1ykfqwg50zjd1q7x8_del",
                    "01m5haktx1ykfqwg50zjd1q7x8_reorder"
                ],
                "name": "Technician",
                "users": [],
                "users_roles": []
            },
            {
                "idx": 1,
                "code": "27b67202",
                "meta": [
                    "01m5hakts5xf0w0n11nx8a4pw5_add",
                    "01m5hakts5xf0w0n11nx8a4pw5_thread",
                    "01m5hakts5xf0w0n11nx8a4pw5_view",
                    "01m5hakts5xf0w0n11nx8a4pw5_viewa",
                    "01m5hakts5xf0w0n11nx8a4pw5_edita",
                    "01m5hakts5xf0w0n11nx8a4pw5_editas",
                    "01m5hakts5xf0w0n11nx8a4pw5_del",
                    "01m5hakts5xf0w0n11nx8a4pw5_reorder"
                ],
                "name": "Manager",
                "users": [
                    "user_a",
                    "user_v",
                    "user_va",
                    "user_d",
                    "user_ea",
                    "user_e",
                    "user_da"
                ],
                "users_roles": [
                    1
                ]
            }
        ]
    }
}
{
                                    // App Body
  }
curl -X PUT https://api.gola.work/api/team/{team}/app/{app} \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Name"    
  }'
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.
{
    "name": "Service Request",
    "id": "01m3y0sem5e3c27n2pc4e1v1tp",
    "fields": [
        {
            "id": "name",
            "type": "string",
            "name": "Title"
        },
        {
            "id": "data_1",
            "name": "ClientId",
            "type": "relation",
            "meta": [
                "tb"
            ],
            "source": "01m3y0sek4k4bcfhgafz3t8832",
            "permissions": []
        },
        {
            "id": "data_2",
            "name": "MachineId",
            "type": "relation",
            "meta": [
                "tb"
            ],
            "source": "01m3y0sek4k4bcfhgafz3t8832",
            "permissions": []
        },
        {
            "id": "data_3",
            "name": "Complaint",
            "type": "string",
            "meta": [
                "tb"
            ],
            "permissions": [
                "1_view",
                "2_view",
                "2_edit",
                "4_view",
                "3_edit"
            ]
        },
        {
            "id": "data_4",
            "name": "Status",
            "type": "select",
            "meta": [
                "tb",
                "dv",
                "tf"
            ],
            "options": [
                {
                    "id": 0,
                    "name": "Assigned"
                },
                {
                    "id": 1,
                    "name": "Closed"
                }
            ],
            "permissions": []
        },
        {
            "id": "data_5",
            "name": "Priority",
            "type": "select",
            "meta": [
                "tb",
                "tf"
            ],
            "options": [
                {
                    "id": 0,
                    "name": "High"
                },
                {
                    "id": 1,
                    "name": "Medium"
                }
            ],
            "permissions": []
        },
        {
            "id": "data_6",
            "name": "CreatedBy",
            "type": "user",
            "meta": [
                "tb"
            ],
            "permissions": []
        },
        {
            "id": "data_7",
            "name": "AssignedTo",
            "type": "user",
            "meta": [
                "tb"
            ],
            "permissions": []
        },
        {
            "id": "data_8",
            "name": "CreatedAt",
            "type": "string",
            "meta": [
                "tb"
            ],
            "permissions": []
        }
    ]
}
Property Meaning
name Field name
type field type
meta Field Meta
options Field Options for select field type
source Target Model For relation field type
options Field Options (for select field type)
permissions Field Permission Model Array of user role id and permission type.
Empty model means access to anyone
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
Option Meaning
tb Show in grid
tf Grid Filter
curl https://api.gola.work/api/team/{team}/app/{app}/model/{model} \
  -H "Authorization: Bearer {token}" \
  -H "Accept: application/json"
POST /team/{team}/app/{app}/model

Create a new model.

Parameter Type Description
team string The team identifier.
app string The application identifier.

Headers

Authorization: Bearer {token}
Content-Type: application/json

Body

{
  "name": "App Model",  
}
{
  "id": "data_xxx",
  "name": "App Model"
}
curl -X POST https://api.gola.work/api/team/{team}/app/{app}/model \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "API_DATA"
  }'
PUT /team/{team}/app/{app}/model/{model}

Update an existing model.

Parameter Type Description
team string The team identifier.
app string The application identifier.
model string The model identifier.
{
  "name": "updated"  
}
{
  "id": "data_xxx",
  "name": "updated"
}
curl -X PUT https://api.gola.work/api/team/{team}/app/{app}/model/{model} \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated"
    
  }'
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"