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

# Read workflow agent settings

> Requires agents:read. Reads ordinary settings and their original timestamp, including an unarchived disabled agent. Does not read or change a workflow document, validate, publish, or enable calls.

Read ordinary voice, technical and analysis settings separately from the Before/During/After document. Requires `agents:read`; disabled but unarchived agents remain readable and editable.

```bash theme={null}
curl 'https://api.goyappr.com/agents/AGENT_ID/settings' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'x-company-id: COMPANY_ID'
```

**id** `string` *required*

Workflow-owned agent ID in the current workspace.

**x-company-id** `string`

Active workspace. API keys cannot select another company. Signed-in dashboard requests require it.

Keep the exact returned `updated_at`, including fractional seconds. Send it as `expected_updated_at` in `PATCH /agents/{id}` when saving changes based on this read. A conflict is `409`, not an instruction to fetch a newer token and overwrite automatically.

The response carries the agent's `voice`, `model` (the [model](https://docs.goyappr.com/api-reference/agents/models.md) it was set to, `null` for automatic) and `resolved_model` (what its calls run on).

The response contains no legacy prompt, graph, native webhook credentials, or compiled runtime data. This read does not check, save or publish a workflow. Use [Get workflow](https://docs.goyappr.com/api-reference/workflows/get.md) for the canonical document.


## OpenAPI

````yaml GET /agents/{id}/settings
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /agents/{id}/settings:
    parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
      - in: header
        name: x-company-id
        schema:
          type: string
          format: uuid
        description: >-
          Explicit active workspace. Optional; when sent it must be the API
          key's own workspace — any other value is refused with 403
          WORKSPACE_MISMATCH.
    get:
      tags:
        - Agents
      summary: Read workflow agent settings
      description: >-
        Requires agents:read. Reads ordinary settings and their original
        timestamp, including an unarchived disabled agent. Does not read or
        change a workflow document, validate, publish, or enable calls.
      operationId: getAgentSettings
      responses:
        '200':
          description: >-
            Allowlisted ordinary settings, with no legacy prompt, graph, webhook
            credentials, or compiled runtime data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSettings'
        '400':
          description: >-
            AGENTS_QUERY_INVALID — a query parameter was sent; this read takes
            none, and the message names it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: MISSING_KEY, INVALID_KEY or EXPIRED_KEY - the key was not accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            INSUFFICIENT_SCOPE — the key does not hold agents:read, and the
            message names it. Original authority was revoked or expired, or
            WORKSPACE_MISMATCH — `x-company-id` named a workspace other than the
            one this API key belongs to.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent absent, archived, foreign-company, or not workflow-owned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Settings storage unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AgentSettings:
      type: object
      additionalProperties: false
      required:
        - id
        - execution_version
        - updated_at
        - name
      description: >-
        Ordinary settings only. The original updated_at is the compare-and-swap
        token for a subsequent workflow-owned agent PATCH; it is not a workflow
        draft version.
      properties:
        id:
          type: string
          format: uuid
        execution_version:
          type: string
          enum:
            - workflow_v1
        updated_at:
          type: string
          format: date-time
        name: 97e09662-ceb8-438b-bd44-b4b066014418
        description: 8f7ad6d4-ac49-446b-8c20-3007f48ce08e
        voice: f71018de-b44e-4858-9c09-1e06f972fba6
        model: cb73a521-0a92-4038-81dc-dd6aaf5311d8
        resolved_model: ecf9dcab-57aa-4631-9e6f-c54588e4e721
        language: e82af2f8-f58d-44d7-a83b-f5719958e33b
        is_active:
          type: boolean
        temperature: 3296bd4f-52eb-4dc1-a97b-fadc1c960a67
        greeting_message: dadab6ce-8a85-4ed7-89a5-f283c409b787
        agent_speaks_first:
          type: boolean
        vad_stop_secs: a979ec90-aec5-40f0-9c0c-4ed43f4f2810
        vad_start_secs: b90a7050-a277-4e70-a9b5-16d133f5c5cc
        vad_confidence: 78b3afc0-3e0f-438b-87e4-686454902c4c
        silence_timeout_secs: 43a8bc14-bd70-4018-81f1-f670bfdaad00
        idle_reminder_count: 4c0cc9c2-459f-480e-9628-035d2d281967
        idle_reminder_text: 4dcd9132-2b10-40cf-ad85-522e6da3af39
        max_continuous_speech_secs: e6cc803c-0cd0-4cb8-b8ae-3251f163eadb
        max_call_duration_secs: 618167a4-80f6-4492-84ad-2b3425716d93
        lead_memory_enabled:
          type: boolean
        noise_cancellation_enabled:
          type: boolean
        background_sound: d8310ecb-a97c-4b2a-b2f9-9b39590dcfdd
        background_sound_volume: ef2d8b9e-5ca4-4bd7-a4db-231824b70165
        extraction_parameters: 76c9aba1-0582-482b-8426-5cdfa6d209d4
    Error:
      type: object
      required:
        - error
        - code
      description: >
        Every error response - the secret-key API and the browser data plane
        alike - carries a

        human-readable `error` and a stable machine `code`, and a refusal that
        names what is

        wrong with the request carries `issues[]` too. Branch on `code`, never
        on the `error`

        text. A refusal that names nothing more specific carries the code its
        status means:

        `BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the
        secret-key API

        answers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR`
        (402),

        `FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405),
        `CONFLICT` (409),

        `GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),

        `UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR`
        (500),

        `UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT`
        (504). Some

        refusals add members of their own beside these (a call request's
        `status`, a workflow's

        `current_version`); the operation says which.
      properties:
        error:
          type: string
          description: The refusal, in one sentence for a person. Its wording may change.
        code:
          type: string
          description: The stable code to branch on.
        issues:
          type: array
          description: >
            Each thing at fault, on a 400 or 422 that names them: every query
            parameter or body field, not just the first. `path` is the
            parameter's name or the field's location.
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                description: >-
                  query_param_unknown, query_param_repeated, query_param_blank,
                  query_param_invalid, field_unknown, field_required,
                  field_invalid, or the route's own word.
              path:
                type: string
              message:
                type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**. No key is `401 MISSING_KEY`; a key that
        is not one of ours, or is revoked, is `401 INVALID_KEY`; an expired one
        is `401 EXPIRED_KEY`. A valid key without the scope an operation needs
        is `403 INSUFFICIENT_SCOPE` on every operation, and the message names
        the scope. Every response, a 401 included, carries X-RateLimit-Limit,
        X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a
        minute per API key. Every 429, whatever its code, carries Retry-After
        (whole seconds, never zero): the per-key budget's `RATE_LIMIT` asks for
        what is left of the minute, a route's daily cap (`RATE_LIMITED`) for the
        time until that cap resets. All four headers are listed in
        Access-Control-Expose-Headers, so a browser can read them. A path the
        API does not serve (an unknown sub-path, an id left empty) is `404
        ROUTE_NOT_FOUND`, and a method a served path does not take is `405
        METHOD_NOT_ALLOWED` with an `Allow` header; both are answered before any
        scope check, and nothing is read or changed. A trailing slash is ignored
        where it cannot be an id left empty (`POST /calls/` is `POST /calls`)
        and refused where it can (`GET /calls/`). A doubled slash inside a path
        is merged into one before the request reaches the API (`GET //calls` is
        `GET /calls`).

````

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