# Fetch profile

`GET /v1/profile`

List project records, configured domains, and account limits.

## Authentication

Send `x-api-key: <key>`. The request has no body and changes no project data.

## Example

```bash
curl --fail-with-body https://ext.tiiny.host/v1/profile -H "x-api-key: $TIINY_API_KEY"
```

## Success response

```json
{"success":true,"data":{"id":"account-id","email":"owner@example.com","customDomains":["tiiny.site"],"links":[{"subdomain":"example.tiiny.site","filename":"site.zip"}],"maxLinks":5,"maxFileSize":75}}
```

| Field under `data` | Type | Use |
| --- | --- | --- |
| `id`, `email` | String | Account identity. |
| `apiKey` | String, when present | Secret. Redact before logging or sharing the response. |
| `customDomains` | Array of strings | Includes `tiiny.site` and account-configured custom domains. |
| `links` | Array of objects | Read `subdomain` for a project's hostname. Records can include `created`, `filename`, `siteType`, and `linkStatus`. The list can include trashed projects. |
| `maxLinks` | Integer | Account project limit. |
| `maxFileSize` | Number, when present | File-size setting in MiB. |

Use `data.links[].subdomain` as the `domain` for [Update](../update-project/) or [Delete](../delete-project/). The delete response adds quota fields.

## Errors

`401` missing key. `403` unknown or API-disabled key. `429` daily rate limit. See [Errors and limits](../../errors/).
