# API

> Linefold's GraphQL API, compatible with Linear's schema and SDK.

Source: https://docs.linefold.app/api

Linefold serves a GraphQL API at `https://app.linefold.app/graphql`, with Linear's schema: Linear's SDK and tools work with
it when pointed at this address.

Authenticate with a personal API key (**Settings › Account › Security & access**) or an [OAuth application](/oauth)'s token:

```sh
curl https://app.linefold.app/graphql \
  -H "Authorization: Bearer lin_api_…" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ viewer { id name } }"}'
```

The workspace's keys and applications are listed in **Settings › API**.