Sync API

Read-only, server-to-server API other internal LINQ apps use to sync Compass people, team, and repo data.

Tokens

Issue and revoke tokens that let other internal LINQ apps read specific Compass people, team, and repo data server-to-server.

What this is
A read-only, server-to-server API for other internal LINQ apps to sync specific Compass people, team, and repo data. It is not part of MCP: no tool-call or AI semantics, just plain field-scoped GET endpoints, and it is never called from a browser.

Base URL

/api/sync/v1

Authentication

Every request sends Authorization: Bearer <token>. There is no session-based auth on these endpoints.

Getting a token

Ask an Editor or Admin to create one (see Tokens above, if you are one yourself). Tokens expire after 90, 180, or 365 days and are rotate-only: an existing token's grants are never edited in place, so changing what fields a token can read means minting a new one with Duplicate and revoking the old one once traffic has moved.

Response envelope
{ "fields": [...], "count": N, "<entity>": [...] }

Every response, success or error, also sets Cache-Control: no-store.

People
GET /api/sync/v1/people Returns active people only unless include_exited=true is set (which also adds an is_exited field to every row).

Fields

idUnique identifier for the person. Always included.
Key field
nameFull name.
emailWork email address.
roleRole, e.g. 'Software Engineer', 'QA', 'Engineering Manager'.
specializationArea of expertise, e.g. 'Frontend', 'Backend', 'Manual', 'Automation'. Often empty.
career_levelCareer level title, e.g. 'Senior Software Engineer'. Often empty.
location'Onshore', 'Nearshore', or 'Offshore'.
cityCity. Rarely populated.
employment_type'FTE' or 'Contractor'.
github_usernameGitHub account handle, or null if not linked.
exited_atWhen the person left, or null if active.
created_atWhen the record was created.
updated_atWhen the record was last changed.
tagsNames of active tags on the person (free-form, e.g. contracting company or program).

Narrow the response with ?fields= (comma-separated); key fields are always returned, even when omitted from fields=.

Filters

?employment_type=Requires the employment_type field. Allowed values: FTE, Contractor.
?role=Requires the role field. Allowed values: Software Engineer, DevOps Engineer, Data Engineer, QA, Product Manager, Designer, Engineering Manager, Other.
?location=Requires the location field. Allowed values: Onshore, Nearshore, Offshore.
?specialization=Requires the specialization field. Allowed values: Frontend, Backend, Fullstack, Infrastructure, Architect, Mobile, Data, DevOps, Security, DBA, Manual, Automation.
?include_exited=Available to any token that can read this entity. Allowed values: true, false.
Teams
GET /api/sync/v1/teams members is an array of { person_id, allocation_pct } objects.

Fields

idUnique identifier for the team. Always included.
Key field
nameTeam display name.
descriptionTeam description.
type'Product Team', 'Platform Team', 'Cloud Ops', 'Shared Services', or 'Other'.
wiki_urlLink to the team's wiki page.
owner_idPerson ID of the team owner.
created_atWhen the record was created.
updated_atWhen the record was last changed.
membersArray of { person_id, allocation_pct } for each member.
tagsNames of active tags on the team.

Narrow the response with ?fields= (comma-separated); key fields are always returned, even when omitted from fields=.

Filters

?type=Requires the type field. Allowed values: Product Team, Platform Team, Cloud Ops, Shared Services, Other.
Repos
GET /api/sync/v1/repos Excludes retired products unless include_retired=true is set (which also adds a product_retired field). Rows are product-to-repo links keyed by (url, product_id) and may reference non-GitHub hosts.

Fields

urlRepository URL. Always included.
Key field
product_idID of the product this repo link belongs to. Always included.
Key field
labelLabel for this repo on this product (a repo can carry different labels on different products).

Narrow the response with ?fields= (comma-separated); key fields are always returned, even when omitted from fields=.

Filters

?product_id=Requires the product_id field. Expects a UUID.
?include_retired=Available to any token that can read this entity. Allowed values: true, false.
token (whoami)
GET /api/sync/v1/token returns the token's own label, owner contact, expiry, and creation date, its effective field grant per entity, and the row-filter query params each entity supports. It takes no query parameters at all.
Errors
Every error body is { error, code, ...details }.
StatusCodeMeaningWhat to do
401missing_authorizationNo Authorization header, or it is not "Bearer <token>".Send Authorization: Bearer <token>.
401invalid_token_formatThe token doesn't look like a compass_sync_ token.Check the token was copied in full.
401invalid_tokenNo token with this value exists.Get a new token.
401token_revokedThe token has been revoked.Get a new token.
401token_expiredThe token has expired.Get a new token (rotate-only, expiry cannot be extended).
503auth_unavailableToken validation could not reach the database.Retry after the Retry-After header's seconds.
403entity_not_permittedThe token has zero granted fields for this entity.Use an entity the token is granted (see permitted_entities), or get a token granted this one.
400unknown_parameterA query parameter this endpoint doesn't recognize was sent.Remove it; see supported_parameters in the response body.
400fields_repeatedfields= was given more than once.Send fields= once, comma-separated.
400fields_emptyfields= was given with no field names.Name at least one field, or omit fields entirely.
400fields_not_permittedA requested field is outside the token's granted set.Drop it, or get a token granted that field.
400filter_repeatedA filter query param was given more than once.Send it once.
400filter_not_permittedA filter is gated by a field the token was not granted.Get a token granted that field, or drop the filter.
400filter_invalid_valueA filter value is not one of its allowed values (or not a UUID, for product_id).Use one of the allowed values shown in the response body.
500query_failedThe underlying data query itself failed.Retry; contact an Editor or Admin if it persists.
Data caveats
  • Career level and specialization are often empty.
  • City is rarely set.
  • GitHub username is null when a person hasn't linked GitHub.
  • Tags are free-form text, not a fixed enum.