Skip to main content
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 is 200 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: admin or higher
  • API keys: a key scoped to publishing:affiliation is accepted. These two by-user routes are the only routes that scope reaches.
  • Requires the publisher capability enabled with its alltrack feature on
  • Environment kill-switch: ALLTRACK_AFFILIATION_ENABLED (503 if off)
Method: GET

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

tenantUserId
string<uuid>
required

The workspace user (TenantUser) id

Response

The user's writer and latest affiliation, or both null

writer
object | null
required
affiliation
object | null
required