Authentication
Get your API key
Section titled “Get your API key”The workspace owner signs up or signs in, completes their profile to receive 500 free credits, then opens API keys.
The key grants access to that workspace’s credits and verifications. For the examples, configure it in the terminal or server environment as AGENTS_VERIFY_API_KEY. An AI agent uses the owner’s configured access. If access is missing, the agent asks how the owner wants to provide it and waits for their choice and configured access.
Set up access with an agent
Section titled “Set up access with an agent”The user enters secret values themselves. When browser tools are available, the agent opens the dashboard in an in-app or connected browser the user can interact with. Otherwise, it shares the URL. For API access, the agent works from the variable name or private file path, then continues with the configured access.
| Setup step | How to proceed |
|---|---|
| Browser sign-in | Open the dashboard in an available in-app or connected browser, reusing the user’s existing session where possible. The user completes the password or sign-in-code fields there, then opens API keys. Share the URL if browser tools are unavailable. |
| Environment variable or secret store | The user configures AGENTS_VERIFY_API_KEY in the environment that runs the requests, directly or through their available secret store. The agent references the variable name; the request process expands its value. |
| Private local credential file | The user creates a .env file containing AGENTS_VERIFY_API_KEY, outside version control and with owner-only access (chmod 600). Share its path with the agent. Load the file inside the request process, keeping its contents out of tool output. |
For a private .env file, source it in the same shell command that runs the request, with command tracing disabled (set +x). This lets the agent work from the file path and variable name while the request process reads the secret. Browser sign-in opens the dashboard; API requests use the key in X-API-Key.
Authenticate a request
Section titled “Authenticate a request”Send the key in the X-API-Key header to https://api.agentsverify.dev. For example, read your credit balance:
curl --fail-with-body 'https://api.agentsverify.dev/v1/credits' \ --header "X-API-Key: ${AGENTS_VERIFY_API_KEY:?Set your API key}"Use the key only with the AgentsVerify API. Keep it out of URLs, logs, agent replies and application browser bundles. Dashboard sign-in is separate from API-key authentication.
Integrations and automation tools that store a workspace key can check it with GET /v1/credits. The read is free, reserves no credits and returns 401 for a missing or invalid key.
Rotate your key
Section titled “Rotate your key”The workspace owner selects Rotate on the API keys page. The old key stops working immediately; connected applications and agents need the new key before continuing.
Try a request in the reference
Section titled “Try a request in the reference”Open the API reference, enter your key in its authentication field and select an operation. Requests use your actual workspace and normal credit rules. The reference does not persist your key across page reloads or send requests through a third-party proxy.
| Submission | What the reference sends |
|---|---|
| Single email or bulk JSON | The input directly to the API. |
| Direct CSV | The file in the multipart request body. |
| Resumable CSV | File metadata to create the job. Transfer the file separately to the returned storage URL. |
Follow the large CSV workflow for the two-stage transfer.
Storage uploads
Section titled “Storage uploads”Send raw file bytes to the returned upload.url, without X-API-Key or an Authorization header. The private URL is scoped to the assigned file and exact byte length.
Authentication errors
Section titled “Authentication errors”HTTP 401 means credentials were missing or rejected. Check the API key and X-API-Key header, including whether the key has been rotated, before retrying. For other responses, see Errors and retries.