> ## 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.

# Report an issue

> Files a bug or a feature request with the Yappr team, attributed to the
workspace that issued the key. Any valid key may call it: no scope is
needed. Reports whose titles closely match one already open are added
to that one, and the answer is `created` either way.


Files a bug or a feature request with the Yappr team from your own code or agent. The report is attributed to the workspace that issued the key, and any valid key can send one: no scope is needed.

Use it when something the API does looks wrong, or when a surface you need has no endpoint. Say what you did, what you expected and what came back; for a bug, `call_ids` and the `error_message` you received let the team find it without asking.

## Example request

```bash theme={null}
curl -s -X POST "https://api.goyappr.com/report-issue" \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "bug",
    "title": "GET /calls returns a call twice across pages",
    "description": "Paging with offset while calls arrive repeats the last call of page one on page two.",
    "steps_to_reproduce": "GET /calls?limit=20, then GET /calls?limit=20&offset=20 a minute later.",
    "source": "my-sync-job"
  }'
```

```json theme={null}
{ "status": "created" }
```

## Good to know

* A report whose title closely matches one already open is added to that one, and the answer is still `created`.
* Text past each field's limit is cut rather than refused: 200 characters for `title`, 5000 for `description`, 2000 for `steps_to_reproduce` and `error_message`, and 20 `call_ids`.
* `502 UPSTREAM_ERROR` or `503 SERVICE_UNAVAILABLE` mean the report did not reach the team. Try again later, or write to support.


## OpenAPI

````yaml POST /report-issue
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:
  /report-issue:
    post:
      tags:
        - Support
      summary: Report an issue
      description: |
        Files a bug or a feature request with the Yappr team, attributed to the
        workspace that issued the key. Any valid key may call it: no scope is
        needed. Reports whose titles closely match one already open are added
        to that one, and the answer is `created` either way.
      operationId: reportIssue
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - title
                - description
                - type
              properties:
                title:
                  type: string
                  minLength: 5
                  description: At least 5 characters. Longer is accepted and cut at 200.
                description:
                  type: string
                  minLength: 10
                  description: At least 10 characters. Longer is accepted and cut at 5000.
                type:
                  type: string
                  enum:
                    - bug
                    - feature
                source:
                  type: string
                  description: >-
                    Where the report comes from, e.g. `yappr-skill`. Defaults to
                    `yappr-api`. Longer is accepted and cut at 100.
                steps_to_reproduce:
                  type: string
                  description: Longer is accepted and cut at 2000.
                error_message:
                  type: string
                  description: Longer is accepted and cut at 2000.
                call_ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    Calls that show the problem. More are accepted and cut at
                    20.
                reporter_email:
                  type: string
                  description: Longer is accepted and cut at 200.
                reporter_context:
                  type: string
                  description: Longer is accepted and cut at 500.
      responses:
        '200':
          description: The report was filed.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                properties:
                  status:
                    type: string
                    enum:
                      - created
        '400':
          description: >-
            `BAD_REQUEST` — the body is not JSON, `title` is under 5 characters,
            `description` is under 10, or `type` is not `bug` or `feature`. The
            message says which.
          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'
        '502':
          description: >-
            `UPSTREAM_ERROR` — the report could not be filed. Try again, or
            write to support.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            `SERVICE_UNAVAILABLE` — reporting is not available right now. Write
            to support instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    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.