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

  1. 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.
  2. Create a personal API key in Linear, Settings, Account, Security & access. It is sent as-is in the Authorization header.
  3. Fill in the environment, pick it in the environment menu and send the first request.

Environment variables

VariableWhat it is
linearApiKeysecretPersonal API key, lin_api_…
teamIdFilled by "List teams" (the first team).

Requests

Queries

  • GraphQL
    Viewer /

    The user the key belongs to.

  • GraphQL
    List teams /

    Teams with ids; saves the first as teamId.

  • GraphQL
    Recent issues /

    The latest issues you can see.

Mutations

  • GraphQL
    Create an issue /

    Creates an issue in the team.