Teams
Team Model
Fields
Field | Type | Description |
|---|---|---|
object | "team" | |
id | string | |
name | string | |
created_at | | |
updated_at | | |
revision | number | Raised by every save of the team's settings, so of two copies the larger one is the later. |
deleted_at | | null | When the team is scheduled to be deleted; null when it is not. |
logo_url | string | null | |
status | | Account standing. Any status other than active stops ingest: delinquent marks a missed
payment, restricted also makes the API read-only apart from the billing fields needed to
recover the account, and blocked is applied manually by Tailglow. |
billing_email | string | |
billing_plan | | |
billing_address | | Postal address that appears on the team's invoices. |
storage_gb | number | Stored data across the team's projects, in gigabytes of uncompressed data: raw ingested files
and artifacts, plus view output and minute-level rollups. Recalculated hourly;
billing_updated_at is the last refresh. |
billing_period_server_months | number | Server-months the team's servers have accrued in the current calendar-month billing period, counted up to the last refresh. |
ai_billing_period_input_tokens | number | AI input tokens consumed through Tailglow-provided model access this billing period, counting only tokens charged at the full input rate. Anything served from or written to the prompt cache is counted separately below. Chats running on your own provider keys are not counted at all. |
ai_billing_period_output_tokens | number | AI output tokens consumed through Tailglow-provided model access this billing period. |
ai_billing_period_cache_read_tokens | number | Input tokens served from the prompt cache this billing period, charged at the cache rate. |
ai_billing_period_cache_write_tokens | number | Input tokens written to the prompt cache this billing period, charged at the cache rate. |
billing_updated_at | | null | When the cached billing quantities were last recalculated; null before the first pass. |
max_servers_per_project | number | How many servers each project may run. Scale requests beyond it are rejected. |
is_mfa_required | boolean | Whether every member must verify with two-factor authentication before their session can act. |
is_tailglow_ai_enabled | boolean | Whether members may run the assistant on Tailglow's model, billed to this team. When false, each member must add their own provider key before they can use the assistant at all. |
has_payment_method | boolean | Whether the team has a payment method on file. |
promo_expires_at | | null | When the trial's server-hours run out (with a card, at the current rate). A time in the past means the trial has ended and its servers are being settled; null when the team has no trial in progress. |
server_trial_used_at | | null | When the team used its once-per-account server trial; retained after the trial is settled. |
promo_server_hours | number | Shared server-hour credits remaining after the last invoice; unbilled usage is not deducted. |
ai_promo_tokens | number | Shared Tailglow AI token credits remaining after the last invoice. |
ai_tgl_generations_count | number | Automatic transform-script generations counted against the hourly budget. The counter rolls over lazily: after the window elapses it keeps its last value until the next generation. |
ai_tgl_generations_reset_at | | null | When the counted window ends or ended. A past timestamp means no generation has happened since. |
ai_chart_colors_count | number | AI chart color runs counted against the plan's hourly limit. The counter rolls over lazily, as
ai_tgl_generations_count does. |
ai_chart_colors_reset_at | | null | When the counted window ends or ended; a chart waiting on the budget gets its colors after it. |
feature_flags | string[] | Features Tailglow has turned on for this team ahead of their general release, sorted. Set by Tailglow staff only; empty for most teams. |
Team Billing Model
Fields
Field | Type | Description |
|---|---|---|
is_estimate_complete | boolean | False when a saved AI rate needs support; monetary estimates are incomplete until resolved. |
object | "billing" | |
team_id | string | |
calculated_at | | |
billing_plan | | |
has_payment_method | boolean | |
promo_expires_at | | null | When the trial's server-hours run out (with a card, at the current rate). Without a card the trial server pauses then; unused promotional units do not expire at this time. |
server_count | number | Non-surge capacity across the team, including provisioning and excluding idle/terminating. |
uninvoiced_server_hours | number | Billable server-hours since the last saved invoice, including preceding-month usage. |
promo_server_hours | number | Stored server-hour balance after the last invoice. |
ai_promo_tokens | number | Stored Tailglow-funded token balance after the last invoice. |
available_promo_server_hours | number | Server-hour credits remaining after accrued, uninvoiced usage. |
ai_available_promo_tokens | number | Tailglow-funded token credits remaining after accrued, uninvoiced usage. |
included_storage_gb_months | number | Storage, in GB-months, the plan credits on every monthly invoice. |
available_included_storage_gb_months | number | Included storage this period has not used yet, in GB-months. |
period_start_at | | First moment of the billing period being estimated, in UTC. |
period_end_at | | First moment of the following period, so the period is [start, end). |
billed_at | | When the invoice for this period is calculated, which is after the period has closed. |
line_items | [] | One entry per billable line. Lines that accrued nothing are present with a zero quantity. |
subtotal_cents | number | |
discount_cents | number | |
total_cents | number | What the period has accrued so far, after discounts. Excludes tax, which Stripe calculates when the invoice is finalized, and any credit note balance, which is applied at payment. |
projected_line_items | [] | The same period carried to billed_at: storage held and grown at its recent rate, servers that
are up staying up, tokens continuing at the month-to-date rate. A subscription appears
unchanged because it is committed for the whole period. A forecast rather than a measurement,
so it assumes today's usage continues and moves the moment a server is added or removed.
Discounts here are read as of billed_at, so one that lapses mid-period counts toward
total_cents but not toward this. |
projected_subtotal_cents | number | |
projected_discount_cents | number | |
projected_total_cents | number |
Billing Line Item Model
Fields
Field | Type | Description |
|---|---|---|
line_item_type | | |
description | string | The label this line carries on the issued invoice, so an estimate reads like the bill. |
quantity | number | Units billed, in the line item's own unit: GB-months, server-months, or token millions. |
unit_price_cents | number | |
subtotal_cents | number | |
discount_cents | number | Zero when no discount applies to this line item. |
total_cents | number | |
discount_id | string | null | The negotiated discount applied in addition to promo credits, or null. |
discount_percent | number | null | Set only for percent discounts; a fixed-amount discount reports its value in cents. |
Billing Estimate Model
Fields
Field | Type | Description |
|---|---|---|
line_items | [] | One entry per billable line, in the order the invoice lists them. Lines that accrued nothing are present with a zero quantity. |
subtotal_cents | number | |
discount_cents | number | |
total_cents | number |
Address Model
Fields
Field | Type | Description |
|---|---|---|
thoroughfare | string | null | Street line: street number and street name. |
premise | string | null | Unit, suite, or building within the street address. |
sublocality | string | null | District or neighborhood within the city, where addresses use one. |
locality | string | null | City or town. |
administrative_area | string | null | State, province, or region. |
postal_code | string | null | ZIP or postal code. |
country | string | null | Two-letter ISO country code. |
List Teams
Endpoint
Retrieve a list of teams the caller belongs to.
/v1/teams Query Parameters
Field | Type | Description |
|---|---|---|
order_by | string | Field used to order the teams. Defaults to "name". Accepted values: "created_at","name". |
name | TextFilter | Filter by team name, written as operator:value. For example contains:acme or equals:Acme Inc. |
status | | Filter by team status, written as operator:value. For example equals:active or in:active,delinquent. |
billing_plan | | Filter by billing plan, written as operator:value. For example in:pro_v1,enterprise_v1. |
created_at | DateFilter | Filter by creation date, written as operator:value. For example gt:2026-01-01 or between:2026-01-01,2026-02-01. |
deleted_at | NullableDateFilter | Filter by scheduled deletion date. Use null for teams that are not scheduled for deletion, not:null for teams that are. |
limit | number | Maximum number of items to return. Defaults to 25. Minimum: 1. Maximum: 200. |
after | string | Cursor from pagination.next_cursor of a previous response. Returns the resources after that page. |
before | string | Cursor from pagination.prev_cursor of a previous response. Returns the resources before that page. |
sort | string | Sort direction for the result set. Defaults to "desc". Accepted values: "asc","desc". |
Response
{
message: string;
data: Team[];
status: 200;
error: null;
pagination: Pagination;
endpoint: string;
} Retrieve Team
Endpoint
Retrieve a single team.
/v1/teams/:team_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Response
{
message: string;
data: Team;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Retrieve Team Billing
Endpoint
Retrieve the team's current billing summary.
/v1/teams/:team_id/billing Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Response
{
message: string;
data: TeamBilling;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Create Team
Endpoint
Create a new team owned by the authenticated user.
/v1/teams Request Body
Field | Type | Requirement | Description |
|---|---|---|---|
name | string | Optional | Display name for the team. Minimum length: 2. Maximum length: 60. |
billing_email | string (email) | Optional | Email address that receives invoices and billing notifications. Maximum length: 64. |
billing_plan | | Optional | Billing plan for the team. |
status | | Optional | Account status for the team. |
is_mfa_required | boolean | Optional | Whether every member must sign in with multi-factor authentication. |
max_servers_per_project | integer | Optional | Maximum number of servers each project in the team can run. Minimum: 1. Maximum: 1000. |
billing_address | object | Optional | Billing address printed on invoices. |
billing_address.thoroughfare | string | Optional | Maximum length: 128. |
billing_address.premise | string | Optional | Maximum length: 128. |
billing_address.sublocality | string | Optional | Maximum length: 128. |
billing_address.locality | string | Optional | Maximum length: 128. |
billing_address.administrative_area | string | Optional | Maximum length: 128. |
billing_address.postal_code | string | Optional | Maximum length: 16. |
billing_address.country | string | Optional | Minimum length: 2. Maximum length: 2. |
logo_url | string | Optional | Team logo, sent as a JPEG or PNG base64 data URI. |
Response
{
message: string;
data: Team;
status: 201;
error: null;
pagination: null;
endpoint: string;
} Update Team
Endpoint
Update an existing team.
/v1/teams/:team_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Request Body
Field | Type | Requirement | Description |
|---|---|---|---|
name | string | Optional | Display name for the team. Minimum length: 2. Maximum length: 60. |
billing_email | string (email) | Optional | Email address that receives invoices and billing notifications. Maximum length: 64. |
billing_plan | | Optional | Billing plan for the team. |
status | | Optional | Account status for the team. |
expected_status | | Optional | The status the team had when you loaded it. Required with status; the change is refused if the status has changed since. |
is_mfa_required | boolean | Optional | Whether every member must sign in with multi-factor authentication. |
is_tailglow_ai_enabled | boolean | Optional | Whether members may run the AI assistant on Tailglow's model, billed to this team. When false, each member must add their own provider key before they can use the assistant. |
max_servers_per_project | integer | Optional | Maximum number of servers each project in the team can run. Minimum: 1. Maximum: 1000. |
billing_address | object | Optional | Billing address printed on invoices. |
billing_address.thoroughfare | string | Optional | Maximum length: 128. |
billing_address.premise | string | Optional | Maximum length: 128. |
billing_address.sublocality | string | Optional | Maximum length: 128. |
billing_address.locality | string | Optional | Maximum length: 128. |
billing_address.administrative_area | string | Optional | Maximum length: 128. |
billing_address.postal_code | string | Optional | Maximum length: 16. |
billing_address.country | string | Optional | Minimum length: 2. Maximum length: 2. |
logo_url | string | Optional | Team logo, sent as a JPEG or PNG base64 data URI. |
feature_flags | string[] | Optional | Features turned on for the team ahead of their general release. Tailglow staff only. The list replaces the team's whole set: send an empty list to turn every feature off. |
deleted_at | | null | Optional | Set to null, as the only field, to restore a team scheduled for deletion. Only Tailglow can set a date. |
Response
{
message: string;
data: Team;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Delete Team
Endpoint
Schedule a team for deletion.
/v1/teams/:team_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Response
{
message: string;
data: null;
status: 200;
error: null;
pagination: null;
endpoint: string;
} List Team Members
Endpoint
Retrieve a list of members in a team.
/v1/teams/:team_id/users Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Query Parameters
Field | Type | Description |
|---|---|---|
order_by | string | Field used to order the team members. Defaults to "name". Accepted values: "created_at","name". |
name | TextFilter | Filter by member name, written as operator:value. For example contains:riley or starts_with:Ri. |
status | | Filter by member account status, written as operator:value. For example in:active,blocked. |
limit | number | Maximum number of items to return. Defaults to 25. Minimum: 1. Maximum: 200. |
after | string | Cursor from pagination.next_cursor of a previous response. Returns the resources after that page. |
before | string | Cursor from pagination.prev_cursor of a previous response. Returns the resources before that page. |
sort | string | Sort direction for the result set. Defaults to "desc". Accepted values: "asc","desc". |
Response
{
message: string;
data: User[];
status: 200;
error: null;
pagination: Pagination;
endpoint: string;
} Retrieve Team Member
Endpoint
Retrieve a single member of a team.
/v1/teams/:team_id/users/:user_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
user_id | string | Unique identifier of the user. |
Response
{
message: string;
data: User;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Add Team Member
Endpoint
Add a person to a team. This does not create a standalone user account: an existing Tailglow account is matched by email address, and an account is created for the address only when none exists yet.
/v1/teams/:team_id/users Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
Request Body
Field | Type | Requirement | Description |
|---|---|---|---|
name | string | Optional | Display name for the member. Minimum length: 2. Maximum length: 60. |
role_id | string | Required | Role the member holds in this team. |
email | string (email) | Required | Email address of the person to add. They receive a sign-in link at this address, and an account is created for them if they do not already have one. |
Response
{
message: string;
data: User;
status: 201;
error: null;
pagination: null;
endpoint: string;
} Update Team Member
Endpoint
Update a member of a team.
/v1/teams/:team_id/users/:user_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
user_id | string | Unique identifier of the user. |
Request Body
Field | Type | Requirement | Description |
|---|---|---|---|
name | string | Optional | Display name for the member. Minimum length: 2. Maximum length: 60. |
role_id | string | Optional | Role the member holds in this team. |
Response
{
message: string;
data: User;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Remove Team Member
Endpoint
Remove a member from a team.
/v1/teams/:team_id/users/:user_id Path Parameters
Field | Type | Description |
|---|---|---|
team_id | string | Unique identifier of the team. |
user_id | string | Unique identifier of the user. |
Response
{
message: string;
data: null;
status: 200;
error: null;
pagination: null;
endpoint: string;
} Referenced Types
TextFilter
Text filters use operator:value, for example ?name=contains:acme. Supported operators are equals, not_equals, contains, not_contains, starts_with, not_starts_with, ends_with, not_ends_with, in, not_in, exists and not_exists. Comma-separate the values of in and not_in, as in in:acme,globex.
DateFilter
Date filters use operator:value with an ISO 8601 date, for example ?created_at=gt:2026-01-01. Supported operators are gt, lt and between, and between takes two comma-separated dates. The named ranges today, yesterday, this_month and last_month are also accepted in place of an operator.
NullableDateFilter
Nullable date filters accept everything a date filter accepts, plus null to match records where the field is unset and not:null to match records where it is set.
ISODateString
An ISO 8601 date-time string returned at the JSON API boundary.