> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Get an infographic

> The infographic with its structured `content`, its versions and a presigned `url` of the current image (valid 1 hour). Poll it, or follow its `jobId`, while `status` is `queued` or `running`.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/workspaces/{workspaceId}/infographics/{id}
openapi: 3.1.0
info:
  title: PostChamp API
  version: 1.0.0
  description: >-
    Write, schedule and manage LinkedIn posts, content styles, carousels and
    infographics from your own tools. Calls run as the key's creator with their
    current role and use the organization's credits. Lists are `{ items,
    nextCursor }`; errors are `{ error: { code, message, details } }`. Every
    response carries `X-Request-Id`, `RateLimit-Limit`, `RateLimit-Remaining`
    and `RateLimit-Reset`; a 429 adds `Retry-After`. Calls that spend credits
    require an `Idempotency-Key` header, and a replayed answer carries
    `Idempotent-Replayed: true`.
servers:
  - url: https://api.postchampai.com
security: []
tags:
  - name: Account
  - name: Posts
  - name: Scheduling
  - name: Content styles
  - name: Carousels
  - name: Infographics
  - name: Jobs
paths:
  /api/v1/workspaces/{workspaceId}/infographics/{id}:
    get:
      tags:
        - Infographics
      summary: Get an infographic
      description: >-
        The infographic with its structured `content`, its versions and a
        presigned `url` of the current image (valid 1 hour). Poll it, or follow
        its `jobId`, while `status` is `queued` or `running`.
      operationId: getInfographic
      parameters:
        - schema:
            type: string
            format: uuid
            example: 7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f
          required: true
          name: workspaceId
          in: path
        - schema:
            type: string
            format: uuid
            example: 7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The infographic.
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
          content:
            application/json:
              example:
                id: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
                title: Weekly shipping, by the numbers
                prompt: What a year of weekly releases changed for our team.
                renderMode: html
                templateKey: null
                stylePreset: null
                aspect: portrait
                width: 1080
                height: 1350
                brandKitApplied: false
                status: ready
                error: null
                phase: null
                content:
                  title: Weekly shipping, by the numbers
                  subtitle: A year of releases
                  sections:
                    - kind: stat
                      heading: Results
                      items:
                        - label: Faster fixes
                          text: ''
                          value: 3x
                          a: ''
                          b: ''
                        - label: Fewer rollbacks
                          text: ''
                          value: '-42%'
                          a: ''
                          b: ''
                    - kind: steps
                      heading: How we did it
                      items:
                        - label: Cut scope
                          text: Ship the smallest useful change.
                          value: ''
                          a: ''
                          b: ''
                        - label: Release on Tuesdays
                          text: One day, one routine.
                          value: ''
                          a: ''
                          b: ''
                shortened: false
                usesPostText: false
                kbItemCount: 0
                imageId: c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f
                currentVersionId: e2f3a4b5-c6d7-4e8f-9a0b-1c2d3e4f5a6b
                url: >-
                  https://cdn.postchampai.com/signed/infographic.png?X-Expires=3600
                versions:
                  - id: e2f3a4b5-c6d7-4e8f-9a0b-1c2d3e4f5a6b
                    versionNo: 1
                    instruction: null
                    status: ready
                    error: null
                    url: >-
                      https://cdn.postchampai.com/signed/infographic.png?X-Expires=3600
                    createdAt: '2026-03-10T11:00:00.000Z'
                jobId: infographic:e2f3a4b5-c6d7-4e8f-9a0b-1c2d3e4f5a6b
                canEdit: true
                createdAt: '2026-03-10T11:00:00.000Z'
                updatedAt: '2026-03-10T11:01:12.000Z'
              schema:
                $ref: '#/components/schemas/Infographic'
        '401':
          description: >-
            `api_key_required` (no `x-api-key`) or `api_key_invalid` (unknown,
            revoked or expired key, or its creator left the organization).
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: >-
            `subscription_required` (trial ended or no live subscription) or
            `insufficient_credits`.
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            `plan_limit` (the plan lacks `api_access`, or a daily cap was
            reached) or `forbidden` (the key's role can't do this).
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: the id does not exist or the key can''t reach it.'
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            `rate_limited`; see `Retry-After`. The body's `error.details` is `{
            retryAfterSeconds, scope? }`: `retryAfterSeconds` is the wait in
            seconds (same as the `Retry-After` header) and `scope` names the
            limit that tripped (`api_global`, `api_apiKey`,
            `api_apiKeyGenerate`, …).
          headers:
            X-Request-Id:
              description: >-
                Id of this request. Quote it when you contact support; 5xx
                bodies repeat it as `details.requestId`.
              schema:
                type: string
                example: req_8f3a2c1e9b7d4a60
            RateLimit-Limit:
              description: >-
                Calls allowed in the current per-minute window (the window with
                the fewest calls left).
              schema:
                type: integer
                example: 120
            RateLimit-Remaining:
              description: Calls left in the current window.
              schema:
                type: integer
                example: 117
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
                example: 42
            Retry-After:
              description: >-
                Seconds to wait before retrying (same value as
                `error.details.retryAfterSeconds`).
              schema:
                type: integer
                example: 12
          content:
            application/json:
              example:
                error:
                  code: rate_limited
                  message: Too many requests. Try again soon.
                  details:
                    retryAfterSeconds: 12
                    scope: api_apiKey
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    Infographic:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        prompt:
          type: string
        renderMode:
          type: string
          enum:
            - html
            - ai_image
        templateKey:
          type:
            - string
            - 'null'
        stylePreset:
          type:
            - string
            - 'null'
        aspect:
          type: string
          enum:
            - portrait
            - square
            - landscape
        width:
          type: integer
        height:
          type: integer
        brandKitApplied:
          type: boolean
        status:
          type: string
          enum:
            - queued
            - running
            - ready
            - failed
            - cancelled
        error:
          type:
            - string
            - 'null'
        phase:
          type:
            - string
            - 'null'
          enum:
            - writing
            - drawing
            - null
        content:
          type:
            - object
            - 'null'
          properties:
            title:
              type: string
              minLength: 1
              maxLength: 80
            subtitle:
              type: string
              maxLength: 140
            sections:
              type: array
              items:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - stat
                      - list
                      - steps
                      - comparison
                      - timeline
                      - text
                  heading:
                    type: string
                    minLength: 1
                    maxLength: 56
                  columns:
                    type: array
                    prefixItems:
                      - type: string
                        maxLength: 24
                      - type: string
                        maxLength: 24
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                          maxLength: 64
                          default: ''
                        text:
                          type: string
                          maxLength: 280
                          default: ''
                        value:
                          type: string
                          maxLength: 14
                          default: ''
                        a:
                          type: string
                          maxLength: 48
                          default: ''
                        b:
                          type: string
                          maxLength: 48
                          default: ''
                    minItems: 1
                    maxItems: 6
                required:
                  - kind
                  - heading
                  - items
              minItems: 2
              maxItems: 6
            footer:
              type: string
              maxLength: 80
            sourcesNote:
              type: string
              maxLength: 120
          required:
            - title
            - sections
        shortened:
          type: boolean
        usesPostText:
          type: boolean
        kbItemCount:
          type: integer
        imageId:
          type:
            - string
            - 'null'
        currentVersionId:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
          description: Presigned GET of the current version (1 h).
        versions:
          type: array
          items:
            $ref: '#/components/schemas/InfographicVersion'
        jobId:
          type:
            - string
            - 'null'
        canEdit:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - title
        - prompt
        - renderMode
        - templateKey
        - stylePreset
        - aspect
        - width
        - height
        - brandKitApplied
        - status
        - error
        - phase
        - content
        - shortened
        - usesPostText
        - kbItemCount
        - imageId
        - currentVersionId
        - url
        - versions
        - jobId
        - canEdit
        - createdAt
        - updatedAt
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Workspace not found.
            details: {}
          required:
            - code
            - message
      required:
        - error
      description: >-
        Every error has this shape. 5xx answers carry `details.requestId`; every
        answer has an `X-Request-Id` header.
    InfographicVersion:
      type: object
      properties:
        id:
          type: string
        versionNo:
          type: integer
        instruction:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - queued
            - running
            - ready
            - failed
            - cancelled
        error:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - versionNo
        - instruction
        - status
        - error
        - url
        - createdAt
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Send your API key in the `x-api-key` header on every request.


        - Create a key in PostChamp under **Settings → API keys**. API access
        needs the Studio plan.

        - Keys start with `pc_live_`. The full key is shown **once**, when you
        create it: copy it then. Afterwards only its prefix is shown; lost keys
        are revoked and replaced.

        - Calls run as the person who created the key, with their current role,
        and spend the organization's credits.

        - Limits per key: 120 requests per minute, 20 generation calls per
        minute. Keep the key on your server, never in a browser or app.

````