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

# Get process

> Read normalized public process state.



## OpenAPI

````yaml /openapi.json get /processes/{process_id}
openapi: 3.1.0
info:
  title: Phonefarm Public API
  description: >-
    Process-first public API for externally triggered Phonefarm execution across
    TikTok and Instagram.
  version: '2026-05-09'
servers:
  - url: https://phonefarm.withmithras.com
security:
  - bearerAuth: []
paths:
  /processes/{process_id}:
    get:
      tags:
        - Processes
      summary: Get process
      description: Read normalized public process state.
      operationId: getProcess
      parameters:
        - $ref: '#/components/parameters/ProcessId'
      responses:
        '200':
          description: Current process state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicProcess'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Requested process, account, or queue item was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Unexpected runtime, environment, or database failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    ProcessId:
      name: process_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    PublicProcess:
      type: object
      properties:
        process_id:
          type: string
          format: uuid
        process_type:
          type: string
        platform:
          type: string
          enum:
            - tiktok
            - instagram
        request_id:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/PublicProcessStatus'
        target:
          type: object
          additionalProperties: true
        requested_by:
          type: object
          additionalProperties: true
        callback:
          oneOf:
            - $ref: '#/components/schemas/Callback'
            - type: 'null'
        result:
          type: object
          additionalProperties: true
        error:
          oneOf:
            - type: object
              additionalProperties: true
            - type: 'null'
        timestamps:
          type: object
          additionalProperties: true
        linked_ids:
          type: object
          additionalProperties: true
        partial_progress:
          type: object
          additionalProperties: true
      required:
        - process_id
        - process_type
        - platform
        - status
        - target
        - requested_by
        - result
        - timestamps
        - linked_ids
        - partial_progress
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: object
          additionalProperties: true
      required:
        - error
    PublicProcessStatus:
      type: string
      enum:
        - queued
        - executing
        - retrying
        - completed
        - failed_terminal
        - cancelled
    Callback:
      type: object
      properties:
        url:
          type: string
          format: uri
        metadata:
          type: object
          additionalProperties: true
      required:
        - url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: PHONEFARM_API_KEY

````