Hey folks, question about interacting with the dag...
# ask-community
v
Hey folks, question about interacting with the dagster cloud graphql api: If I know the run id of a job, what query do I use to get the current status of the run?
t
Here's a sample GraphQL query to help get you started!
Copy code
query GetStatusOfRun(
  $runId: ID!
) {
  runOrError (
    runId: $runId
  ) {
    ... on Run {
      status
    }
  }
}
v
awesome! thanks!
@Tim Castillo didn’t quite get the
... on Run
part
nvm, figured it out!
thanks again!
t
awesome! glad you did it!
v
@Tim Castillo one more q: in order to issue the query from like curl do i just pass my cloud token as an auth header?
nvm, got that working too!
t
You're on a roll!