Chief Tools Logo
Server Chief API v1

Endpoints for managing team tags and sharing them read-only with other teams.


List tags

GET
https://server.chief.app/api/v1
/tags
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the tags the authenticated team can see: its own tags (access owner) and tags other teams shared with it (access viewer), sorted by name.

List tags › query Parameters

query
​string | null · maxLength: 255

Search results by name.

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1

List tags › Responses

Paginated set of Tag

​Tag[] · required
​object · required
​object · required

Create a tag

POST
https://server.chief.app/api/v1
/tags
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Create a tag in the authenticated team. Attach it to servers with the server tags endpoints, and share it to give other teams read-only access to those servers.

Create a tag › Request Body

name
​string · maxLength: 64 · pattern: ^[\pL\pN][\pL\pN _.:… · required

Tag name, unique within the team. Letters, digits, spaces and . _ - : /, starting with a letter or digit.

Example: production
color
​string · enum

Colour of the tag in the dashboard.

Enum values:
zinc
red
orange
amber
green
teal
sky
blue
Default: zinc

Create a tag › Responses

The tag was created.

​Tag · required

Show a tag

GET
https://server.chief.app/api/v1
/tags/{tag}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Show one of the team's tags, or a tag shared with the team.

Show a tag › path Parameters

tag
​string · required

Show a tag › Responses

Tag

​Tag · required

Update a tag

PATCH
https://server.chief.app/api/v1
/tags/{tag}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Rename or recolour one of the team's tags. Tags shared with the team cannot be changed.

Update a tag › path Parameters

tag
​string · required

Update a tag › Request Body

name
​string · maxLength: 64 · pattern: ^[\pL\pN][\pL\pN _.:… · required

Tag name, unique within the team. Letters, digits, spaces and . _ - : /, starting with a letter or digit.

Example: production
color
​string · enum

Colour of the tag in the dashboard.

Enum values:
zinc
red
orange
amber
green
teal
sky
blue
Default: zinc

Update a tag › Responses

Tag

​Tag · required

Delete a tag

DELETE
https://server.chief.app/api/v1
/tags/{tag}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Delete one of the team's tags. It is removed from every server, and teams it was shared with lose access to the servers they only saw through it.

Delete a tag › path Parameters

tag
​string · required

Delete a tag › Responses

The tag was deleted.

string

List a tag's shares

GET
https://server.chief.app/api/v1
/tags/{tag}/shares
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the teams one of the team's tags is shared with. Only the owner team can see the shares of a tag.

List a tag's shares › path Parameters

tag
​string · required

List a tag's shares › Responses

Array of TagShare

​TagShare[] · required

Share a tag

POST
https://server.chief.app/api/v1
/tags/{tag}/shares
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Share one of the team's tags with another team by its slug. The other team then sees every server of this team that carries the tag, read-only, until the tag is detached, unshared or deleted. Sharing again with the same team updates the role. Shared servers never count towards the other team's plan.

Share a tag › path Parameters

tag
​string · required

Share a tag › Request Body

team
​string · maxLength: 255 · required

Slug of the team to share the tag with. The team must use Server Chief.

Example: acme
role
​string · enum

What the team can do with the tagged servers. viewer is read-only.

Enum values:
viewer
Default: viewer

Share a tag › Responses

The tag is shared with the team.

​TagShare · required

Unshare a tag

DELETE
https://server.chief.app/api/v1
/tags/{tag}/shares/{team}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Stop sharing one of the team's tags with a team. The team immediately loses access to the servers it only saw through the tag. A team a tag is shared with can leave the share by passing its own slug.

Unshare a tag › path Parameters

tag
​string · required
team
​string · required

Unshare a tag › Responses

The tag is no longer shared with the team.

string