All categories

Endpoints and contracts

AI prompts: API testing

Prompts for testing REST or GraphQL endpoints, response contracts, permissions, rate limits, and backwards compatibility.

Data security: Use these prompts with your coding agent or QA workflow. Avoid pasting secrets, credentials, or sensitive customer data into tools you do not control.

Generate API test cases

Use this for REST or GraphQL endpoint testing.

You are an API QA engineer.
Create API test cases for the following endpoint:

Endpoint:
[METHOD + URL]

Request body:
[PASTE REQUEST BODY]

Response example:
[PASTE RESPONSE]

Business rules:
[PASTE RULES]

Include tests for:
- Successful request
- Missing required fields
- Invalid field types
- Invalid authentication
- Missing permissions
- Boundary values
- Duplicate requests
- Rate limiting
- Error response format
- Backward compatibility

Return the test cases in a structured table.