Rolefig Publisher API

The Publisher API from Rolefig — 2 operation(s) for publisher.

GitHub OpenAPI

Operations 3

GET /api/v1/publisher/company Get publisher snapshot #
PUT /api/v1/publisher/company Update company #
PUT /api/v1/publisher/jobs/{jobSlug} Upsert company job #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rolefig-com:rolefig-com-publisher-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rolefig-com-publisher-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Company publishing Publisher API
  version: 1.1.0
  description: Headless company profiles and job advertisements, plus /api/v1/me for a candidate's own account with a personal access token (jpme_). Public browser reads require no key. Private Bearer tokens belong on your server. Verified self-service and operator-provisioned company accounts; company tokens never expose candidate or recruiter data, and candidate tokens reach only their owner's account. Legacy writes carry the reviewed aggregate revision; employer job writes require the reviewed job revision. Browser Origin or Cookie headers are rejected by the employer bearer API. Compensation narrative is authoritative; numeric values always include currency and unit. rolefig's public gateway bounds write requests to 64 KiB. /api/v2/companies adds the facts search engines use (datePosted, dateModified, structured addresses, remote eligibility, education and experience); v2 readers must ignore fields they do not know. /api/v1 company and publisher responses keep their original fields exactly. The employer API returns the company's complete private snapshot, including those facts.
servers:
- url: https://rolefig.com
tags:
- name: Publisher
paths:
  /api/v1/publisher/company:
    get:
      operationId: getPublisherSnapshot
      security:
      - companyToken: []
      responses:
        '200':
          description: Current revision
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublisherSnapshot'
        '400':
          description: Invalid request
        '401':
          description: Missing, expired or revoked token
        '403':
          description: Scope or ownership denied
        '409':
          description: Stale expectedRevision; retrieve and review before retrying
        '412':
          description: If-Match disagrees with expectedRevision
        '413':
          description: Request or aggregate exceeds limits
        '503':
          description: Publishing unavailable; do not fall back to withdrawn content
      tags:
      - Publisher
      summary: Get publisher snapshot
      x-summary-source: derived
    put:
      operationId: updateCompany
      description: Legacy imported catalogs only. Self-service companies must use /api/v1/employer/company.
      security:
      - companyToken: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyUpdate'
      responses:
        '200':
          description: Current revision
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublisherSnapshot'
        '400':
          description: Invalid request
        '401':
          description: Missing, expired or revoked token
        '403':
          description: Scope or ownership denied
        '409':
          description: Stale expectedRevision; retrieve and review before retrying
        '412':
          description: If-Match disagrees with expectedRevision
        '413':
          description: Request or aggregate exceeds limits
        '503':
          description: Publishing unavailable; do not fall back to withdrawn content
      tags:
      - Publisher
      summary: Update company
      x-summary-source: derived
  /api/v1/publisher/jobs/{jobSlug}:
    put:
      operationId: upsertCompanyJob
      description: Legacy imported catalogs only. Self-service roles must use the employer API review lifecycle.
      security:
      - companyToken: []
      parameters:
      - name: jobSlug
        in: path
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
          maxLength: 100
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JobUpdate'
      responses:
        '200':
          description: Current revision
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublisherSnapshot'
        '400':
          description: Invalid request
        '401':
          description: Missing, expired or revoked token
        '403':
          description: Scope or ownership denied
        '409':
          description: Stale expectedRevision; retrieve and review before retrying
        '412':
          description: If-Match disagrees with expectedRevision
        '413':
          description: Request or aggregate exceeds limits
        '503':
          description: Publishing unavailable; do not fall back to withdrawn content
      tags:
      - Publisher
      summary: Upsert company job
      x-summary-source: derived
components:
  schemas:
    PublisherSnapshot:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        version:
          type: string
          const: '1'
        company:
          type: object
          properties:
            slug:
              type: string
              maxLength: 100
              pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            name:
              type: string
              minLength: 1
              maxLength: 200
            website:
              type: string
              format: uri
            tagline:
              type: string
              minLength: 1
              maxLength: 300
            description:
              type: string
              minLength: 1
              maxLength: 20000
            industry:
              type: string
              minLength: 1
              maxLength: 200
            locations:
              minItems: 1
              maxItems: 30
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 200
            logoUrl:
              type: string
              format: uri
            status:
              type: string
              enum:
              - draft
              - published
            sameAs:
              minItems: 1
              maxItems: 10
              type: array
              items:
                type: string
                format: uri
            headquarters:
              type: object
              properties:
                streetAddress:
                  type: string
                  minLength: 1
                  maxLength: 200
                locality:
                  type: string
                  minLength: 1
                  maxLength: 100
                region:
                  type: string
                  minLength: 1
                  maxLength: 100
                postalCode:
                  type: string
                  minLength: 1
                  maxLength: 20
                country:
                  type: string
                  pattern: ^[A-Z]{2}$
              required:
              - locality
              - country
              additionalProperties: false
            size:
              type: string
              enum:
              - 1-10
              - 11-50
              - 51-200
              - 201-500
              - 501-1000
              - 1001-5000
              - 5001+
            foundedYear:
              type: integer
              minimum: 1800
              maximum: 9007199254740991
            benefits:
              minItems: 1
              maxItems: 30
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 120
            workplacePolicy:
              type: string
              minLength: 1
              maxLength: 1000
            hiringProcess:
              minItems: 1
              maxItems: 10
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 200
          required:
          - slug
          - name
          - website
          - tagline
          - description
          - industry
          - locations
          - status
          additionalProperties: false
        jobs:
          maxItems: 100
          type: array
          items:
            type: object
            properties:
              slug:
                type: string
                maxLength: 100
                pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
              title:
                type: string
                minLength: 1
                maxLength: 200
              description:
                type: string
                minLength: 1
                maxLength: 30000
              department:
                type: string
                minLength: 1
                maxLength: 200
              employmentType:
                type: string
                enum:
                - full-time
                - part-time
                - contract
              workplaceType:
                type: string
                enum:
                - remote
                - hybrid
                - on-site
              location:
                type: string
                minLength: 1
                maxLength: 300
              applicantLocationRequirements:
                maxItems: 20
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 300
              compensation:
                type: object
                properties:
                  text:
                    type: string
                    minLength: 1
                    maxLength: 1000
                  currency:
                    type: string
                    pattern: ^[A-Z]{3}$
                  min:
                    type: number
                    minimum: 0
                  max:
                    type: number
                    minimum: 0
                  unit:
                    type: string
                    enum:
                    - year
                    - month
                    - week
                    - day
                    - hour
                required:
                - text
                additionalProperties: false
              sections:
                maxItems: 30
                type: array
                items:
                  type: object
                  properties:
                    heading:
                      type: string
                      minLength: 1
                      maxLength: 300
                    items:
                      minItems: 1
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 10000
                  required:
                  - heading
                  - items
                  additionalProperties: false
              applyUrl:
                type: string
                format: uri
              sourceUrl:
                type: string
                format: uri
              validThrough:
                type: string
                format: date-time
                pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
              status:
                type: string
                enum:
                - draft
                - published
                - closed
              managedJobId:
                type: string
                format: uuid
                pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              sourceRevision:
                type: integer
                exclusiveMinimum: 0
                maximum: 9007199254740991
              revision:
                type: integer
                exclusiveMinimum: 0
                maximum: 9007199254740991
            required:
            - slug
            - title
            - description
            - employmentType
            - workplaceType
            - location
            - compensation
            - sections
            - applyUrl
            - status
            - revision
            additionalProperties: false
        revision:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
      required:
      - version
      - company
      - jobs
      - revision
      additionalProperties: false
    JobUpdate:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        expectedRevision:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        job:
          type: object
          properties:
            slug:
              type: string
              maxLength: 100
              pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title:
              type: string
              minLength: 1
              maxLength: 200
            description:
              type: string
              minLength: 1
              maxLength: 30000
            department:
              type: string
              minLength: 1
              maxLength: 200
            employmentType:
              type: string
              enum:
              - full-time
              - part-time
              - contract
            workplaceType:
              type: string
              enum:
              - remote
              - hybrid
              - on-site
            location:
              type: string
              minLength: 1
              maxLength: 300
            applicantLocationRequirements:
              maxItems: 20
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 300
            compensation:
              type: object
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 1000
                currency:
                  type: string
                  pattern: ^[A-Z]{3}$
                min:
                  type: number
                  minimum: 0
                max:
                  type: number
                  minimum: 0
                unit:
                  type: string
                  enum:
                  - year
                  - month
                  - week
                  - day
                  - hour
              required:
              - text
              additionalProperties: false
            sections:
              maxItems: 30
              type: array
              items:
                type: object
                properties:
                  heading:
                    type: string
                    minLength: 1
                    maxLength: 300
                  items:
                    minItems: 1
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 10000
                required:
                - heading
                - items
                additionalProperties: false
            applyUrl:
              type: string
              format: uri
            sourceUrl:
              type: string
              format: uri
            validThrough:
              type: string
              format: date-time
              pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
            status:
              type: string
              enum:
              - draft
              - published
              - closed
          required:
          - slug
          - title
          - description
          - employmentType
          - workplaceType
          - location
          - compensation
          - sections
          - applyUrl
          - status
          additionalProperties: false
      required:
      - expectedRevision
      - job
      additionalProperties: false
    CompanyUpdate:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        expectedRevision:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        company:
          type: object
          properties:
            slug:
              type: string
              maxLength: 100
              pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            name:
              type: string
              minLength: 1
              maxLength: 200
            website:
              type: string
              format: uri
            tagline:
              type: string
              minLength: 1
              maxLength: 300
            description:
              type: string
              minLength: 1
              maxLength: 20000
            industry:
              type: string
              minLength: 1
              maxLength: 200
            locations:
              minItems: 1
              maxItems: 30
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 200
            logoUrl:
              type: string
              format: uri
            status:
              type: string
              enum:
              - draft
              - published
          required:
          - slug
          - name
          - website
          - tagline
          - description
          - industry
          - locations
          - status
          additionalProperties: false
      required:
      - expectedRevision
      - company
      additionalProperties: false
  securitySchemes:
    candidateToken:
      type: http
      scheme: bearer
      bearerFormat: jpme_<random-token>
      description: Personal access token for the candidate's own account, issued and revoked on the account page. Read-only or read and write; expires within one year. Never embed in browser JavaScript.
    companyToken:
      type: http
      scheme: bearer
      bearerFormat: stpub_<random-token>
      description: Company-scoped, expiring credential. Never embed in browser JavaScript.