Back to APIs
Linear
Linear's GraphQL API gives full access to teams, projects, issues, cycles, and comments — perfect for automating developer workflows and integrating with your toolchain.
Base URL
https://api.linear.app/graphqlproject managementissuesGraphQLsprintsautomation
Endpoints
POST
/Query issues assigned to the authenticated user.
const response = await fetch("https://api.linear.app/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
body: JSON.stringify({
"query": "{ viewer { assignedIssues { nodes { title priority state { name } } } } }"
})
});
const data = await response.json();
console.log(data);Response Preview
{
"data": {
"viewer": {
"assignedIssues": {
"nodes": [
{ "title": "Fix auth bug", "priority": 1, "state": { "name": "In Progress" } }
]
}
}
}
}