Templates · Productivity
Linear GraphQL API collection template
Teams, issues and creating issues with Linear's GraphQL API.
What's inside
Linear's API is GraphQL: these requests read the viewer, teams and recent issues, and create an issue. A good starting point for GraphQL in Requestarium.
4 requests in 2 folders · Base URL https://api.linear.app/graphql · API key in the Authorization header
Set it up
- Open Linear GraphQL API in Requestarium (or in the app: Import, Start from a template) and import it. You get the collection and a "Linear GraphQL API" environment.
- Create a personal API key in Linear, Settings, Account, Security & access. It is sent as-is in the Authorization header.
- Fill in the environment, pick it in the environment menu and send the first request.
Environment variables
| Variable | What it is |
|---|---|
linearApiKeysecret | Personal API key, lin_api_… |
teamId | Filled by "List teams" (the first team). |
Requests
Queries
- GraphQLViewer
/The user the key belongs to.
- GraphQLList teams
/Teams with ids; saves the first as teamId.
- GraphQLRecent issues
/The latest issues you can see.
Mutations
- GraphQLCreate an issue
/Creates an issue in the team.