Writers
Get a workspace user's AllTrack affiliation
GET /writer/by-user//alltrack/affiliation
GET
Get a workspace user's AllTrack affiliation
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
GET /writer/by-user//alltrack/affiliation Description: Returns the writer linked to a workspace user and that writer’s most recent AllTrack affiliation. For an integration that acts for one user and knows the user’s id but not a writer id. When the user has no writer yet, the response is200 with
writer and affiliation both null, never 404. When the writer has
never applied, affiliation alone is null.
The response body is not wrapped in a data envelope, and it never
includes the details submitted with the application.
Authorization:
- Required role:
adminor higher - API keys: a key scoped to
publishing:affiliationis accepted. These two by-user routes are the only routes that scope reaches. - Requires the
publishercapability enabled with itsalltrackfeature on - Environment kill-switch:
ALLTRACK_AFFILIATION_ENABLED(503 if off)
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
The workspace user (TenantUser) id