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.
Base URL
/api/sync/v1Authentication
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.
{ "fields": [...], "count": N, "<entity>": [...] }Every response, success or error, also sets Cache-Control: no-store.
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
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.GET /api/sync/v1/teams members is an array of { person_id, allocation_pct } objects.Fields
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.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
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.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.| Status | Code | Meaning | What to do |
|---|---|---|---|
| 401 | missing_authorization | No Authorization header, or it is not "Bearer <token>". | Send Authorization: Bearer <token>. |
| 401 | invalid_token_format | The token doesn't look like a compass_sync_ token. | Check the token was copied in full. |
| 401 | invalid_token | No token with this value exists. | Get a new token. |
| 401 | token_revoked | The token has been revoked. | Get a new token. |
| 401 | token_expired | The token has expired. | Get a new token (rotate-only, expiry cannot be extended). |
| 503 | auth_unavailable | Token validation could not reach the database. | Retry after the Retry-After header's seconds. |
| 403 | entity_not_permitted | The 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. |
| 400 | unknown_parameter | A query parameter this endpoint doesn't recognize was sent. | Remove it; see supported_parameters in the response body. |
| 400 | fields_repeated | fields= was given more than once. | Send fields= once, comma-separated. |
| 400 | fields_empty | fields= was given with no field names. | Name at least one field, or omit fields entirely. |
| 400 | fields_not_permitted | A requested field is outside the token's granted set. | Drop it, or get a token granted that field. |
| 400 | filter_repeated | A filter query param was given more than once. | Send it once. |
| 400 | filter_not_permitted | A filter is gated by a field the token was not granted. | Get a token granted that field, or drop the filter. |
| 400 | filter_invalid_value | A 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. |
| 500 | query_failed | The underlying data query itself failed. | Retry; contact an Editor or Admin if it persists. |
- 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.