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

# Start a screenshot upload

> Requires `strings:write`. Native projects only. Returns a screenshot in `upload_pending` and a time-limited PUT URL. PUT the image bytes (PNG, JPEG, or WebP, 1 byte to 10 MB) with the returned headers, then call finalize. Object storage must be configured or the service returns `503 screenshot_storage_unavailable`. Optional `markers` attach keys before the image is ready. Figma fields are read-only.



## OpenAPI

````yaml https://public-api.hyperlocalise.com/openapi.yaml post /v1/projects/{projectId}/screenshots
openapi: 3.1.0
info:
  title: Hyperlocalise Public API
  version: 1.0.0
  description: >-
    Read projects, Queries, jobs, glossaries, and translation memories from a
    Hyperlocalise workspace; create native projects from project templates and
    manage those templates; define custom project fields and set their values;
    manage the strings, translations, screenshots, and settings of native
    projects; search strings; round-trip bilingual files; update jobs one at a
    time or in bulk; register job-change webhook endpoints; import and export
    glossaries and translation memories; and read the Reports page's reports as
    JSON or CSV.
servers:
  - url: https://public-api.hyperlocalise.com
security:
  - personalAccessToken: []
tags:
  - name: Identity
  - name: Projects
  - name: Project templates
  - name: Custom fields
  - name: Queries
  - name: Jobs
  - name: Strings
  - name: Translations
  - name: Screenshots
  - name: Figma attachments
  - name: Bilingual files
  - name: Glossaries
  - name: Translation memories
  - name: Webhooks
  - name: CDN
  - name: Hyperlab
  - name: Reports
    description: >-
      The Reports page's reports for scripts, BI tools and payment systems.
      Every report needs `reports:read`, which only admins' and localization
      managers' keys hold, and the workspace's Reports feature. Each answer says
      whether recent work is still being counted (`stillUpdating`); figures can
      lag live work by one capture run. A workspace may ask for 30 reports a
      minute, in bursts of 10.
paths:
  /v1/projects/{projectId}/screenshots:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
    post:
      tags:
        - Screenshots
      summary: Start a screenshot upload
      description: >-
        Requires `strings:write`. Native projects only. Returns a screenshot in
        `upload_pending` and a time-limited PUT URL. PUT the image bytes (PNG,
        JPEG, or WebP, 1 byte to 10 MB) with the returned headers, then call
        finalize. Object storage must be configured or the service returns `503
        screenshot_storage_unavailable`. Optional `markers` attach keys before
        the image is ready. Figma fields are read-only.
      operationId: createScreenshot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - filename
                - contentType
                - byteSize
              properties:
                filename:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: A PNG
                  JPEG: null
                  or WebP file name. Spaces become underscores.: null
                contentType:
                  type: string
                  enum:
                    - image/png
                    - image/jpeg
                    - image/jpg
                    - image/webp
                byteSize:
                  type: integer
                  format: int64
                  minimum: 1
                  maximum: 10485760
                name:
                  type:
                    - string
                    - 'null'
                  maxLength: 256
                width:
                  type:
                    - integer
                    - 'null'
                  minimum: 1
                  maximum: 10000
                height:
                  type:
                    - integer
                    - 'null'
                  minimum: 1
                  maximum: 10000
                markers:
                  type: array
                  maxItems: 1000
                  items:
                    $ref: '#/components/schemas/ScreenshotMarkerInput'
      responses:
        '201':
          description: Pending screenshot and upload request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScreenshotCreateResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        maxLength: 128
  schemas:
    ScreenshotMarkerInput:
      type: object
      additionalProperties: false
      description: >-
        Pick the string with `stringId`, or `key` (and `filePath` when the key
        exists in more than one file).
      properties:
        stringId:
          type: string
          format: uuid
        key:
          type: string
          minLength: 1
          maxLength: 1000
        filePath:
          type: string
          maxLength: 2048
        marker:
          $ref: '#/components/schemas/ScreenshotMarkerBox'
    ScreenshotCreateResult:
      type: object
      required:
        - screenshot
        - upload
      properties:
        screenshot:
          $ref: '#/components/schemas/Screenshot'
        upload:
          $ref: '#/components/schemas/ScreenshotUpload'
    ScreenshotMarkerBox:
      type: object
      additionalProperties: false
      required:
        - left
        - top
        - width
        - height
      description: >-
        Percent of the image. `left + width` and `top + height` must stay at or
        below 100.
      properties:
        left:
          type: number
          minimum: 0
          maximum: 100
        top:
          type: number
          minimum: 0
          maximum: 100
        width:
          type: number
          exclusiveMinimum: 0
          maximum: 100
        height:
          type: number
          exclusiveMinimum: 0
          maximum: 100
    Screenshot:
      type: object
      required:
        - id
        - name
        - filename
        - contentType
        - status
        - width
        - height
        - imageUrl
        - figmaUrl
        - markers
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        name:
          type:
            - string
            - 'null'
        filename:
          type: string
        contentType:
          type: string
          enum:
            - image/png
            - image/jpeg
            - image/webp
        status:
          type: string
          enum:
            - upload_pending
            - ready
        width:
          type:
            - integer
            - 'null'
        height:
          type:
            - integer
            - 'null'
        imageUrl:
          type:
            - string
            - 'null'
          format: uri
          description: Time-limited download URL for `ready` screenshots.
        figmaUrl:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            Set when the Figma plugin synced this screenshot from a frame.
            Read-only.
        markers:
          type: array
          items:
            $ref: '#/components/schemas/ScreenshotMarker'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ScreenshotUpload:
      type: object
      required:
        - url
        - method
        - headers
        - expiresAt
      properties:
        url:
          type: string
          format: uri
        method:
          type: string
          enum:
            - PUT
        headers:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        expiresAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
          description: >-
            Structured context, such as the `jobId` that stopped a bulk job
            update.
          additionalProperties: true
    ScreenshotMarker:
      type: object
      required:
        - id
        - screenshotId
        - stringId
        - key
        - filePath
        - marker
        - source
      properties:
        id:
          type: string
          format: uuid
        screenshotId:
          type: string
          format: uuid
        stringId:
          type: string
          format: uuid
        key:
          type: string
        filePath:
          type:
            - string
            - 'null'
        marker:
          oneOf:
            - $ref: '#/components/schemas/ScreenshotMarkerBox'
            - type: 'null'
        source:
          type: string
          enum:
            - manual
            - auto
  responses:
    BadRequest:
      description: Invalid query parameters or request body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: The personal access token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The token lacks the required scope or workspace access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The resource is missing or inaccessible.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The project is not native, the key already exists, the segment is
        locked, the webhook endpoint limit was reached, or the job, memory, or
        glossary is managed elsewhere or archived.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: >-
        The request body exceeds 256 KiB (16 MiB for a strings batch, 25 MiB for
        a bilingual file or a memory or glossary import).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Authentication or resource storage is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    personalAccessToken:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.