Мої команди
GET https://digily.link/api/teams/
curl --request GET \
--url 'https://digily.link/api/teams/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/teams/' \
--header 'Authorization: Bearer {api_key}' \
| Параметри | Деталі | Опис |
|---|---|---|
| page | Необов'язково Ціле число | Номер сторінки, з якої ви хочете отримати результати. За замовчуванням 1. |
| results_per_page | Необов'язково Ціле число | Скільки результатів ви хочете на сторінці. Дозволені значення: 10 , 25 , 50 , 100 , 250 , 500 , 1000. За замовчуванням 25. |
{
"data": [
{
"id": 1,
"name": "Example team",
"team_members": [
{
"team_member_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2025-11-04 16:57:18",
"last_datetime": null
}
],
"last_datetime": null,
"datetime": "2025-11-04 16:57:18",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://digily.link/api/teams?page=1",
"last": "https://digily.link/api/teams?page=1",
"next": null,
"prev": null,
"self": "https://digily.link/api/teams?page=1"
}
}
GET https://digily.link/api/teams/{team_id}
curl --request GET \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Example team",
"team_members": [
{
"team_member_id": 1,
"user_email": "hello@example.com",
"access": {
"read": true,
"create": true,
"update": true,
"delete": false
},
"status": 1,
"datetime": "2025-11-04 16:57:18",
"last_datetime": null
}
],
"last_datetime": null,
"datetime": "2025-11-04 16:57:18",
}
}
POST https://digily.link/api/teams
| Параметри | Деталі | Опис |
|---|---|---|
| name | Обов'язково Рядок | - |
curl --request POST \
--url 'https://digily.link/api/teams' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My team' \
--url 'https://digily.link/api/teams' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My team' \
{
"data": {
"id": 1
}
}
POST https://digily.link/api/teams/{team_id}
| Параметри | Деталі | Опис |
|---|---|---|
| name | Необов'язково Рядок | - |
curl --request POST \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My new team name' \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=My new team name' \
{
"data": {
"id": 1
}
}
DELETE https://digily.link/api/teams/{team_id}
curl --request DELETE \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://digily.link/api/teams/{team_id}' \
--header 'Authorization: Bearer {api_key}' \