Skip to main content
Monitoring as Code: Learn more about the API check construct.

API check test structure

Request Configuration

HTTP Methods

Supported HTTP methods:
  • GET: Retrieve data from endpoints
  • POST: Create resources or submit data
  • PUT: Update existing resources
  • PATCH: Partial resource updates
  • DELETE: Remove resources
  • HEAD: Check resource existence without body

Authentication Support

  • Bearer Token: JWT and OAuth token authentication
  • Basic Auth: Username/password authentication
  • API Keys: Custom header or query parameter authentication
  • Custom Headers: Flexible authentication patterns

Response Validation

Status Code Assertions

Validate HTTP response codes:

Content Validation

Validate response content and structure:

Header Validation

Check response headers:

Advanced Features

Environment variables

Use variables for dynamic content:

Request Chaining

Use previous responses in subsequent requests:

GraphQL Support

Monitor GraphQL APIs by sending the query and its variables as a JSON body:
With bodyType: 'GRAPHQL', Checkly sends the body as the query without variables. Use a JSON body when your query needs variables.