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

# Export a saved visual as CSV

This endpoint needs no token, so you can link to a saved visual's CSV directly.

```yaml GET /api/v2/saved_visuals/{id}/csv theme={null}
openapi: 3.1.0
info:
  title: AppSignal V2 API
  description: >-
    REST API for metrics, traces, logs, Kubernetes monitoring, and deployment
    tracking.
  license:
    name: ''
  version: 0.1.0
paths:
  /api/v2/saved_visuals/{id}/csv:
    get:
      tags:
        - Saved Visuals
      summary: Export a saved visual as CSV
      operationId: csv
      parameters:
        - name: id
          in: path
          description: Hex-encoded ObjectId of the saved visual.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            CSV with a `timestamp` column (RFC 3339) and one column per series,
            sorted by timestamp. Series with no point at a timestamp read `0`.
            Series names starting with `=`, `+`, `-`, `@`, tab or carriage
            return get a leading `'` so spreadsheets read them as text.
          headers:
            Content-Disposition:
              schema:
                type: string
              description: '`attachment; filename="{id}.csv"`'
          content:
            text/csv:
              schema:
                type: string
              example: |
                timestamp,line one,line two
                2020-04-12T22:00:00+00:00,1,10
                2020-04-12T22:01:00+00:00,0,10
                2020-04-12T22:02:00+00:00,1,0
        '400':
          description: '`id` is not a valid ObjectId (`error` is `invalid_id`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '404':
          description: No saved visual with this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: External query concurrency limit exceeded; retry shortly.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsResponse'
        '500':
          description: Unhandled server-side failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BadRequestResponse:
      type: object
      description: >-
        Standard body for HTTP 400 Bad Request responses. Branch on the stable
        `error` slug, display `message` as-is, and read per-error structured
        data from `details`.
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Stable, machine-readable slug identifying the specific error case.
        message:
          type: string
          description: Human-readable message. Safe to log or display to end users.
        details:
          description: >-
            Per-error structured payload. Shape varies by
            [`error`](Self::error).
    ErrorResponse:
      type: object
      description: Error body returned for 401, 404 and 500 responses.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
    TooManyRequestsResponse:
      type: object
      description: Error body returned for 429 responses.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
        suggestion:
          type:
            - string
            - 'null'
          description: >-
            A cheaper way to write the request's filter. Only the trace list

            endpoints set it, and only for a filter with a known indexed
            rewrite.
```


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.appsignal.com/llms.txt).


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