Teams
GET /api/v1/teams
Get Teams
getTeams returns all teams the user has access to
Response
Type: []Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/teamsPOST /api/v1/teams
Create Team
postTeam creates a new team
Request Body
Type: CreateTeamRequest
Response
Type: Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/teamsGET /api/v1/teams/{id}
Get Team
getTeam returns a specific team
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Response
Type: Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/teams/{id}PUT /api/v1/teams/{id}
Update Team
putTeam updates a team
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Request Body
Type: Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Response
Type: Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Example
curl -X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/teams/{id}DELETE /api/v1/teams/{id}
Delete Team
deleteTeam deletes a team
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Example
curl -X DELETE \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/teams/{id}GET /api/v1/teams/{id}/logo
Get Team Logo
getTeamLogo serves the logo for a team
Logos are publicly accessible (no auth required) to allow browser tags to load them
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/teams/{id}/logoPOST /api/v1/teams/{id}/logo
Create Team Logo
uploadTeamLogo uploads a logo for a team
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Response
Type: Team
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
organization_id | string | |
slug | string | Unique within org |
has_logo | bool | |
logo | string | |
member_count | int64 | Computed (not stored in DB) |
organization_name | string | |
organization | Organization | Relationships (optional) |
members | []TeamMember | (optional) |
projects | []Project | (optional) |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
https://api.seeme.ai/api/v1/teams/{id}/logoDELETE /api/v1/teams/{id}/logo
Delete Team Logo
deleteTeamLogo deletes the logo for a team
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Example
curl -X DELETE \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/teams/{id}/logo