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

# Read a Configuration

> GET /api/config/:username/:profileSlug

Returns a saved [SavedConfiguration](https://docs.gitascii.com/api/configuration.md). This read is anonymous; published layout JSON is not a secret store.

```bash theme={null}
curl -i https://gitascii.com/api/config/octocat/default
```

| Parameter | Location | Meaning |
| :- | :- | :- |
| `username` | Path | GitHub handle |
| `profileSlug` | Path | Saved profile slug, such as `default` or `work` |

On success, the body is the configuration itself, without a `config` wrapper. It contains identity, template, widgets, global styles, and metadata. The route prefers GitHub-backed configuration loading; see [storage](https://docs.gitascii.com/api/json.md) for fallback responsibilities.

| Status | Body |
| :- | :- |
| `200` | `SavedConfiguration` JSON |
| `400` | `{"error":"Username is required"}` for a missing username passed to the handler |
| `404` | `{"error":"Config not found"}` |
| `500` | `{"error":"<failure message>"}` |

Successful responses set `Cache-Control: public, s-maxage=60, stale-while-revalidate=300`. This endpoint does not write configurations or dispatch Actions. Use the editor to publish changes.

Source: [configuration route](https://github.com/Igorcbraz/GitAscii/blob/f248c939a3ea7810c3d3e331ae904b56a72b998f/src/app/api/config/%5Busername%5D/%5BprofileSlug%5D/route.ts).


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