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

# Revoke Recording Links

> Requires calls:create. Takes back every recording link issued for this call so far, including links from before links started expiring, which have no exp: from then on they answer 403 RECORDING_LINK_REVOKED. Answers with a new working link, and later reads of the call return new links too. The recording itself is not deleted. It takes no body and no query parameters; anything sent is refused by name with 400 RECORDING_REVOKE_INVALID. The call's updated_at moves to revoked_at, so a sync on updated_since (even updated_since=revoked_at) reads the new link.


Takes back every recording link issued for one call so far. Use it when a
`recording_url` was pasted somewhere it should not be: a ticket, a chat, a
shared document. Required scope: `calls:create`. A key
[limited to some agents](https://docs.goyappr.com/api-reference/introduction.md#limiting-a-key-to-some-agents)
can revoke only its own agents' calls. In the dashboard, the same revoke is
**Revoke recording links** under the player in the call's panel in Call Logs,
beside **Copy recording link**, which copies the same link the API returns.

```bash theme={null}
curl -X POST "$YAPPR_API_URL/calls/a47cf8bd-5a3e-4c55-9b0f-6c1f2d8e9a10/recording/revoke" \
  --header "Authorization: Bearer $YAPPR_API_KEY"
```

It takes no body and no query parameters: anything sent with it is refused by
name with `400 RECORDING_REVOKE_INVALID`, and nothing is revoked. `issues[]`
names each one: a body field as `field_unknown` at `/<field>`, a query parameter
at its name.

```json theme={null}
{
  "error": "Remove reason. Revoking a call's recording links takes no body fields.",
  "code": "RECORDING_REVOKE_INVALID",
  "issues": [
    { "code": "field_unknown", "path": "/reason", "message": "Remove reason. Revoking a call's recording links takes no body fields." }
  ]
}
```

## Response

```json theme={null}
{
  "call_id": "a47cf8bd-5a3e-4c55-9b0f-6c1f2d8e9a10",
  "revoked_at": "2026-09-24T12:00:00.123Z",
  "recording_url": "https://api.goyappr.com/calls/a47cf8bd-5a3e-4c55-9b0f-6c1f2d8e9a10/recording?exp=1790208000&sig=…"
}
```

From `revoked_at` on, every earlier link for this call answers
`403 RECORDING_LINK_REVOKED`, including links from before links started
expiring, which have no `exp`. `recording_url` is a new link that works; it is left out
(never `null`) when the call has no recording yet, or none the link can serve, as
`GET /calls` and `GET /calls/{id}` leave it out. Later reads of the call return new links
too. Revoking again takes back those as well. The call's `updated_at` moves to
`revoked_at`, so a sync windowed on [`updated_since`](https://docs.goyappr.com/api-reference/calls/list#keeping-a-copy-in-step),
even `updated_since=<revoked_at>`, reads the call again and drops the dead link.

The recording itself is not deleted, and your dashboard still plays it.

| Status | Code | Why |
| - | - | - |
| 400 | `RECORDING_REVOKE_INVALID` | A body field or query parameter was sent. Nothing was revoked. |
| 404 | `RESOURCE_ID_INVALID` | The id in the path is not a call id. Use the `id` a list or a create returned. |
| 404 | `NOT_FOUND` | No call with this id in this workspace, or a call of an agent the key is not limited to. |
| 503 | `RECORDING_LINK_UNAVAILABLE` | Nothing was revoked. Try again in a moment. |


## OpenAPI

````yaml POST /calls/{id}/recording/revoke
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:
  /calls/{id}/recording/revoke:
    post:
      tags:
        - Calls
      summary: Revoke recording links
      description: >
        Requires calls:create. Takes back every recording link issued for this
        call so far, including links from before links started expiring, which
        have no exp: from then on they answer 403 RECORDING_LINK_REVOKED.
        Answers with a new working link, and later reads of the call return new
        links too. The recording itself is not deleted. It takes no body and no
        query parameters; anything sent is refused by name with 400
        RECORDING_REVOKE_INVALID. The call's updated_at moves to revoked_at, so
        a sync on updated_since (even updated_since=revoked_at) reads the new
        link.
      operationId: revokeCallRecordingLinks
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Every earlier link for the call is revoked.
          content:
            application/json:
              schema:
                type: object
                required:
                  - call_id
                  - revoked_at
                properties:
                  call_id:
                    type: string
                    format: uuid
                  revoked_at:
                    type: string
                    format: date-time
                  recording_url:
                    type: string
                    description: >-
                      A new link that works. Absent (never null) when the call
                      has no recording yet, or none the link can serve, as GET
                      /calls and GET /calls/{id} leave it out.
        '400':
          description: >-
            RECORDING_REVOKE_INVALID: a body field or query parameter was sent.
            Nothing was revoked. issues[] names each one: a body field as
            field_unknown at /<field>, a query parameter at its name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            RESOURCE_ID_INVALID: the id in the path is not a call id. NOT_FOUND:
            no call with this id in this workspace, or a call of an agent the
            key is not limited to.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'RECORDING_LINK_UNAVAILABLE: nothing was revoked. Try again.'
          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.