Set up your agent
1
Create an API key
Create a key under Billing & API Keys,
then make it available to your coding agent as an environment variable.Never paste the key into a prompt, source file, URL, or commit.
2
Open agent setup
Open API Studio and select
Set up an agent beside the manual API description form.
- Copy prompt copies the current, server-provided integration prompt.
- Open ChatGPT or Open Claude copies the prompt and opens a new chat.
- Download skill downloads the transport-neutral
create-critique-apisinstructions and API contract.
CRITIQUE_API_KEY and make HTTPS
requests in order to create or run one.3
Give the agent your requirement
Describe the reusable behavior, required inputs, exact output fields,
freshness requirements, and preferred sources. For example:
Create a private API that accepts a company name and returns its latest funding round, amount, date, investors, and primary-source URLs. Then show me how to call it from this project.
Use the skill without a CLI
The skill works through ordinary authenticated HTTPS requests. It can usecurl, JavaScript fetch, an IDE HTTP tool, or the existing HTTP client in any
project language. Python and the Critique CLI are not required.
The agent reads the lifecycle contract from the skill, sends
X-API-Key: $CRITIQUE_API_KEY, and uses the integration object returned by
the server as the source of truth for running the new endpoint.
Install the CLI (optional)
The optional, open-source CLI package iscritique-api-cli and has no third-party
runtime dependencies. Its source is available on
GitHub.
CRITIQUE_API_KEY:
Install the skill
The downloaded archive contains aSKILL.md and the API contract reference.
Import the create-critique-apis folder using your agent client’s skill
workflow. No language runtime or package installation is required:
Endpoint lifecycle
All management and runtime requests use theX-API-Key header. These examples
assume CRITIQUE_API_KEY is set in the environment.
Create
The only required create field isoriginal_prompt.
response. Treat response.integration as the
authoritative handoff: it contains the final callable URL, authentication
contract, request and response JSON Schemas, an example request, runnable code,
and a short agent handoff.
Do not construct the runtime URL from the stub when an
integration.url is
available. The server-returned integration object is the source of truth.Inspect and modify
string, number, and
boolean. Output formats support nested objects and one-item array schemas in
addition to string, number, boolean, and integer values.
Run
POST a body matchingintegration.request_schema to integration.url:
context when displaying or storing researched output so its source
URLs remain available to users.
Delete
Deletion is permanent. Confirm the endpoint ID before calling:Optional domain controls
Runtime bodies may includeinclude_domains or exclude_domains as an array of
domain strings. They are mutually exclusive.
Error handling
400or422: correct the request or schema; do not retry unchanged.401: verify thatCRITIQUE_API_KEYis available without printing it.404: list endpoints and confirm that the ID belongs to the current key.429: respect the rate limit before retrying.504: the research request exceeded the service deadline.

