Cert Chief
Use the Cert Chief GraphQL API to query domains, monitors, certificate checks, and TLS server tests.
Looking for help using Cert Chief in the browser? Go to the Cert Chief documentation.
API documentation
Give a token only the Cert Chief permissions the integration needs.
Explore the schema and send requests from the playground.
Authenticate
Every authenticated request needs a bearer access token. Use a team access token for a service owned by one team, a personal access token for a private script, or OAuth when your application connects other users' accounts. The token guide explains how to create and protect each token type, and the scopes reference lists the Cert Chief permissions.
Send GraphQL requests to:
Code
Select a team
Domains, certificates, and notifications belong to a team. Query team to read them. It has the same fields for every token type.
- With a team access token,
teamis the token's team.viewerreturnsnullbecause the token does not belong to a user. - With a personal or OAuth access token,
teamis the team the token is limited to, otherwise the user's default team.viewerexposes the same fields for that team.
A personal or OAuth token that is not limited to one team can select another of the user's teams with the hint argument:
Code
team returns null when the user does not belong to the hinted team, or when the token is limited to a different team. Use the id field of team as the hint.
You can also select the team with the X-Chief-Team header, which applies to the whole request:
Code
When the token is limited to one team, including every team access token, the header must name that team. A team that the token cannot use returns 404 Not Found.
Send a first request
This request lists the team's monitored domains with the expiry date of each current certificate. It needs the certchief:domains:read and certchief:certificates:read scopes:
Code
Code
When hasMorePages is true, repeat the request with page: 2, page: 3, and so on. Request at most 100 items per page.
A field the token has no scope for resolves to null and adds an entry to errors, while the rest of the response still returns. Handle a missing scope shows the error format.