You can extend the power of Guard Detect by integrating directly with the Atlassian platform GraphQL API. The API gives you access to all sorts of Atlassian data, so you can receive and manage alerts outside of Guard Detect.
The GraphQL API reference provides a comprehensive guide to Guard Detect queries and mutations. You can use the API explorer to get acquainted with the GraphQL API.
Refer to the GraphQL authentication reference for all the available authentication options.
User API tokens can also be used to authenticate scripts and simple integrations. These clients use the
https://api.atlassian.com/graphql
URL. You can generate the token from your Atlassian account.
Read how to Manage API tokens for your Atlassian account
If you don’t use a token to authenticate, you may see a redirection message, which will redirect you to an alternative interface where browser sessions are supported.
Most GraphQL queries require an Atlassian resource identifier (ARI). If you’re not sure how to assemble your ARI or where to find your Atlassian IDs, visit our Build your ARI page.
To get you started, here's an example query that fetches data about a Guard Detect workspace.
Open the API explorer
Paste this code into the main query window:
1 2query getWorkspace($workspaceAri: ID!) { shepherd { workspace(id: $workspaceAri) { __typename ... on ShepherdWorkspaceConnection { edges { node { ... on ShepherdWorkspace { id } } } } } } }
Note that Shepherd is an internal name for Guard Detect functionality.
In the query variables window, paste this code:
1 2{ "workspaceAri": "your-workspace-ari-here" }
Replace the string your-workspace-ari-here with your workspace ARI.
Press the execute query button (triangle icon) at the top of the screen.
Details about your workspace will appear in the panel on the right.
Need help? Reach out on the Guard Detect community.
Rate this page: