Skip to main content
GET
Get the tenant's first publisher record
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

GET /publisher/publishers/me Singleton-style lookup: returns the FIRST Publisher row for the tenant (ordered by createdAt ASC), including territories, agreements, and userData. Mounted before /publishers/{id} so Express does not match the literal segment me as an :id. Used by the P7 first-run wizard to detect “no publisher record yet”. Authorization: user role + publisher addon.

Code Examples

Authorizations

Authorization
string
header
required

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

Response

Publisher fetched.

id
string<uuid>
tenantId
integer
name
string

1-45 characters (VALIDATION_RULES.publisher.name).

ipiNameNumber
string | null

11-digit IPI name number. Unique per tenant when set.

ipiBaseNumber
string | null

13-character IPI base number. Unique per tenant when set.

publisherType
enum<string>
default:original
Available options:
original,
sub,
administrator
affiliatedPRO
string | null
isActive
boolean
default:true
settings
object
territories
object[]

JSONB territory snapshot stored directly on the Publisher row. Distinct from the normalized PublisherTerritories table managed by the /territories endpoints.

tenantUserId
string<uuid> | null

Optional link to a TenantUser; when set and ipiNameNumber is absent, some read paths fall back to the linked user's IPI.

PublisherTerritories
object[]

Present on list/get responses (Sequelize include, unaliased plural).

PublisherAgreements
object[]

Present on GET /publishers/{id} and GET /publishers/me only.

userData
object | null

Linked TenantUser (id, firstName, lastName, email, ipi), present when tenantUserId is set.

createdAt
string<date-time>
updatedAt
string<date-time>