# Download existing GraphqlBaseline

Existing artifact owned by scripts/generate-graphql-schema.ts. This operation retrieves its bytes; use the native protocol's current consumer setup to interpret the contract.

Operation: downloadGraphqlBaseline
GET /graphql/schema-baseline.graphql

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/downloadGraphqlBaseline) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "downloadGraphqlBaseline",
  "summary": "Download existing GraphqlBaseline",
  "tags": [
    "discovery"
  ],
  "description": "Existing artifact owned by scripts/generate-graphql-schema.ts. This operation retrieves its bytes; use the native protocol's current consumer setup to interpret the contract.",
  "x-artifact-download": true,
  "responses": {
    "200": {
      "description": "Existing generated contract artifact",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "304": {
      "description": "Not modified; no response body"
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request GET 'https://irvinebroque.com/graphql/schema-baseline.graphql' --header 'Accept: application/octet-stream'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.discovery.graphqlBaseline({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque discovery graphql-baseline
```
