Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: AgentsIndex — machine Lead API
version: 1.0.0
description: 'AgentsIndex is the reference index of AI-native tools: an ongoing, edited catalog of AI agents, AI-first products, and the tools that power them. Free, keyless read endpoints over the tools corpus, plus verified-session submission intake. AgentsIndex reuse terms (https://agentsindex.ai/terms): Search engines, AI assistants answering a question and AI models in training may all read and reuse these listings. Say the facts came from AgentsIndex and link the listing you used.'
license:
name: AgentsIndex reuse terms
url: https://agentsindex.ai/terms
servers:
- url: https://agentsindex.ai
tags:
- name: Lead
paths:
/api/lead:
post:
operationId: submitLead
summary: Send a qualified buyer-intent enquiry (lead) to a listing or category
description: A buyer-intent enquiry routed to the listing owner (or a category's providers). Keyless and CSRF-free when sent as application/json. The quality gate requires consent=true, a real name, a permanent (non-disposable) email, a message of at least 20 chars, and a target (listingSlug OR categorySlug). The same (email + target) within 7 days is idempotent (200, duplicate:true). Nothing here changes a listing's rank, tier or copy.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LeadInput'
responses:
'200':
description: 'Accepted (routed or deduplicated): { ok:true, delivered }.'
content:
application/json:
schema:
type: object
'400':
description: 'Rejected by the quality gate: { ok:false, error } (e.g. no_consent, thin_message, bad_email, no_target).'
content:
application/json:
schema:
type: object
tags:
- Lead
components:
schemas:
LeadInput:
type: object
required:
- name
- email
- message
- consent
properties:
name:
type: string
maxLength: 120
email:
type: string
description: A permanent (non-disposable) email.
message:
type: string
minLength: 20
maxLength: 4000
description: The enquiry — real demand, at least 20 chars.
consent:
description: Must be truthy — the sender agreed their details go to the provider(s).
oneOf:
- type: boolean
- type: string
listingSlug:
type: string
description: Target listing slug (this OR categorySlug is required).
categorySlug:
type: string
description: Target category slug (this OR listingSlug is required).
company:
type: string
source:
type: string
securitySchemes:
agentKey:
type: http
scheme: bearer
description: An agent key the account made at https://agentsindex.ai/dashboard/agents (it starts with mak_). It acts as that account on submit, the claim and domain-proof steps, quotes, orders and reading its own listings, each by the scope the key was given, with the same refusals as its session; it cannot sign in, change the account or pay.
sessionCookie:
type: apiKey
in: cookie
name: __Secure-better-auth.session_token
description: Existing Better Auth session cookie issued through https://agentsindex.ai/login?next=%2Fsubmit. The account email must be verified for submission. This is a session cookie, not an API key to provision.