REST API

Authenticate with Evatype and use the v1 API for projects, ideas, workflows, runs, AI visibility, and content entries.

Base URL

All customer API routes use this base URL:

https://evatype.com/api/v1

Requests and responses use JSON.

Authentication

Send a bearer token with every request:

Authorization: Bearer YOUR_TOKEN

Open API tokens in your Evatype account to create or manage an API token. Interactive clients can use OAuth 2.1 access tokens instead. Both token types use the same permission checks.

A token with read access can call GET endpoints. Write access is required for idea changes, brand context edits, generation, workflow updates, generated content edits, publication, schedules, AI visibility prompt changes, and content entry writes. Missing or invalid authentication returns 401; insufficient permission returns 403.

Find a project ID

Start with:

curl https://evatype.com/api/v1/projects \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN"

Project identifiers use the proj_... format. Use that identifier in project-scoped paths.

Endpoints

Method Path Purpose
GET /projects List projects.
GET /projects/:project_id/ideas List ideas. Use status=pending, archived, or all.
POST /projects/:project_id/ideas Add an idea.
PATCH /projects/:project_id/ideas/:index Edit, archive, or restore an idea. Use its index from the list response.
GET /projects/:project_id/brand-context Read positioning, ICP, target topics, brand aliases and competitors with their aliases.
PATCH /projects/:project_id/brand-context Edit positioning, ICP, target topics or brand_aliases (the other names the business goes by; the list you send replaces the stored one), add or edit competitors (by id, or by domain when no id is sent; an id lets you change the domain; aliases replaces a competitor's other names), and delete the domains listed in remove_competitors.
GET /projects/:project_id/workflows List workflows.
GET /projects/:project_id/workflows/:id Get one workflow and its ordered steps.
PATCH /projects/:project_id/workflows/:id Update a workflow's name, status, archived state, prompt, output schema, or field mapping.
GET /projects/:project_id/usage Read the current usage period and remaining pages.
GET /projects/:project_id/runs List recent generation runs.
GET /projects/:project_id/runs/:id Get a run and its items.
POST /projects/:project_id/runs Generate content from idea indices.
GET /projects/:project_id/run-items/:id Get one generated item.
PATCH /projects/:project_id/run-items/:id Edit generated content, set or remove its publication schedule, or both.
POST /projects/:project_id/run-items/:id/publish Publish a generated item to its destination now.
GET /projects/:project_id/ai-visibility/prompts List active tracking prompts, including disabled prompts.
POST /projects/:project_id/ai-visibility/prompts Add a tracking prompt.
PATCH /projects/:project_id/ai-visibility/prompts/:id Edit a tracking prompt's text, enabled state, group or branded mark.
DELETE /projects/:project_id/ai-visibility/prompts/:id Archive a tracking prompt and retain its history.
GET /projects/:project_id/ai-visibility/evaluation-runs List AI visibility evaluation runs. Optional report_id filter.
GET /projects/:project_id/ai-visibility/evaluation-runs/:id Get parsed prompt-by-engine results.
GET /projects/:project_id/ai-visibility/evaluation-runs/:id/raw Get parsed results plus retained provider request/response data. Callback credentials are redacted.
GET /projects/:project_id/ai-visibility/report Get the AI visibility report as Markdown, with its evaluation run and stats. Optional evaluation_run_id.
GET /projects/:project_id/content-types List content types and field schemas.
GET /projects/:project_id/entries List published entries across content types.
GET /projects/:project_id/content-types/:slug/entries List published entries for one content type.
GET /projects/:project_id/content-types/:slug/entries/:entry_slug Get one entry.
POST /projects/:project_id/content-types/:slug/entries Create an entry.
PATCH /projects/:project_id/content-types/:slug/entries/:entry_slug Update an entry.

List endpoints that return entries accept page and per_page parameters.

AI visibility evaluation endpoints are read-only and return stored results; calling them does not launch provider work. Each run includes the ISO country_code and its model-specific engine_availability snapshot so unsupported engines are distinguishable from failed checks. The evaluation run list accepts per_page from 1 to 100 and defaults to 25. Each evaluation has an engine: chatgpt, google_ai_overview, google_ai_mode, gemini, perplexity or bing_ai_mode. A run checks only the engines tracked for its project. Each evaluation lists its sources and its search_queries: the web searches the engine ran while it answered. Each source has cited (true when the answer cites it in its text, false when the engine only read it, null before it is checked), domain_type and page_format (null until classified), and datePublished when the engine gives one. brand_judgement_status is null until the answer's brands are checked, then completed, code_only (matched by name without a judge) or failed. brand_mentions lists the business and each tracked competitor the answer names, each with kind (business or competitor), competitor_id, name, named, recommended (null until judged), sentiment, position among all the brands the answer names in order of first appearance, tracked or not (only tracked brands count until other_brands is filled), the quoted passage, and the citation_url attached to it. A brand the answer does not count has named false and a reason: other_company (a different company with a similar name), no_info, other_meaning or linked_only. other_brands lists the other brands the answer names with name, domain, recommended and position (null when the answer text does not show the name), or is null until they are found. Only ChatGPT and Perplexity expose their searches, so the list is empty for the other engines, and it can be empty for ChatGPT and Perplexity too. A Google check where Google showed no AI Overview has status no_ai_overview, null brand_mentioned and domain_cited, and an organic_results object with top_results (up to 10, each with position, title, url, domain and kind of own, competitor or other), results_checked, own_position (null when the site is not in the results) and competitors_above. Run summaries count these checks in evaluations_no_ai_overview, apart from evaluations_completed.

The AI visibility report returns the full saved AI visibility report as Markdown, including hand edits, under markdown. With no evaluation_run_id, or the id of the run whose summary was saved last, it returns the current saved report; for an older run, it returns the summary that run generated. The response also includes evaluation_run (the run the summary came from, plus prompt_count and engines; null for a hand-written summary with no run), summary_started_at, and stats. When prompts have groups or branded marks, stats.groups lists each group with its name (null for prompts without a group), branded, prompts and per-engine answers, mentioned and cited counts (cited counts answers that listed the project domain as a source). Counts are never added across groups or engines. Every other count in stats then covers unbranded prompts only. It reads stored data only and never starts an evaluation or writes a summary. Without a summary, it returns 404.

Add an idea and start generation

Add an idea with a title or keyword, optional instructions, and a workflow ID:

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/ideas \
  -X POST \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"A guide to content operations","workflow_id":123,"description":"Write for a marketing operations lead."}'

List ideas and read the index value for the idea you want to process. Start a run with one or more indices:

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/runs \
  -X POST \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"idea_indices":[0]}'

The account's remaining page allowance can reduce the number of ideas accepted into a run.

Optionally set awareness_stage to record how much the reader already knows about the problem and your product: unaware, problem_aware, solution_aware, product_aware, or most_aware. Evatype derives the idea's funnel_stage from it.

Update an idea

Use the idea's index from the list response in the request path. Send only the fields you want to change: title, description, draft, keywords, workflow_id, awareness_stage, or archived. An unrecognized awareness_stage returns 422 and changes nothing.

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/ideas/0 \
  -X PATCH \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"description":"Focus on editorial review.","keywords":["content operations"]}'

If you send keywords, send the complete array; it replaces the existing keywords. A new workflow_id must identify an active workflow in the project.

Send "archived": true to archive an idea or "archived": false to restore it.

Update a workflow

Send only the settings you want to change. The token needs write permission.

Field Effect
name Renames the workflow.
status draft or active.
archived true archives the workflow. false restores it.
prompt_template Replaces the full writing prompt on the process step.
output_schema Replaces the full list of output fields on the process step. Send an array of field objects. Each object needs a slug.
field_mapping Replaces the full destination mapping on the write step. Send an object whose keys are output field slugs and whose values are destination field slugs. An empty string leaves that output field unwritten.

Read the current workflow first, edit the arrays and objects you get back, and send the complete result. A partial output_schema or field_mapping removes the fields you leave out.

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/workflows/123 \
  -X PATCH \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"field_mapping":{"page-title":"page-title","intro-paragraph":"intro-paragraph","use-cases":""}}'

A malformed output_schema or field_mapping, or a workflow without the matching step, returns 422 and changes nothing.

Edit generated content

Send content, an object of field slug to new value, to replace one or more generated fields on an item. Each value replaces that field in full, so send a structured field such as a FAQ list whole.

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/run-items/456 \
  -X PATCH \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":{"intro-paragraph":"Updated intro"}}'

A field slug must already exist on the item or in the workflow's output schema. Generation metadata and attachment-managed image fields are not editable. An unknown field, or a request with neither content nor scheduled_publish_at, returns 422. You can send content and scheduled_publish_at in the same request.

Schedule a generated item

Set a future timestamp in ISO 8601 format. The value must include Z or an explicit UTC offset. Replace the example timestamp with a future time before sending the request.

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/run-items/456 \
  -X PATCH \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"scheduled_publish_at":"2027-08-20T09:00:00+05:30"}'

Remove the schedule by sending null:

{"scheduled_publish_at": null}

The item must contain generated data and have an eligible destination. Invalid, past, or ineligible schedules return 422. A queue error returns 503 and does not save the requested time.

Publish a generated item now

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/run-items/456/publish \
  -X POST \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN"

For writable destinations, this writes the item immediately. Any configured webhook notification is queued in a background job. For publication that only uses a webhook, no destination write occurs.

Returns the updated run item under data, including published_at.

An item with an active schedule returns 422; remove the schedule first. An item that is generating or being written, or an ineligible item, also returns 422 with the error message.

Manage AI visibility tracking prompts

List tracking prompts with GET /projects/:project_id/ai-visibility/prompts. The list includes active prompts whether enabled or disabled.

To create a prompt, send an ai_visibility_prompt object with prompt text, an optional enabled boolean, an optional group_name and an optional branded boolean. New prompts are enabled by default, have no group and are not branded.

curl https://evatype.com/api/v1/projects/proj_EXAMPLE/ai-visibility/prompts \
  -X POST \
  -H "Authorization: Bearer $EVATYPE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ai_visibility_prompt":{"prompt":"Which tools help manage content operations?","enabled":true,"group_name":"Content operations"}}'

Use the returned data.id in PATCH /projects/:project_id/ai-visibility/prompts/:id to change prompt or enabled inside the same ai_visibility_prompt object. Editing the text archives the previous version and preserves its answers. Use the new data.id returned by the edit for later requests.

Each prompt has at most one group_name, such as CRM enrichment, and a branded boolean. Set branded to true when the prompt names your business, such as "what is Example?". Changing group_name or branded keeps the same prompt id and its answers, because they only change how results are reported. Send an empty group_name to remove the group. When any prompt has a group or is branded, the AI visibility report adds a table of results per group and engine, and branded prompts are left out of every other count.

Set enabled to false to stop evaluating a prompt while keeping it in the active list. Send DELETE /projects/:project_id/ai-visibility/prompts/:id to archive it and remove it from that list without deleting its history.

Creating or editing a prompt does not start an evaluation. Only active, enabled prompts are eligible for evaluation.

Create or update a content entry

Entry bodies use field_data, whose keys must follow the content type schema. status can be draft or published.

{
  "slug": "content-operations-guide",
  "status": "draft",
  "field_data": {
    "title": "A guide to content operations",
    "body_markdown": "## Introduction\n\nContent..."
  }
}

An entry update merges the submitted field_data into the existing data.

For AI-client access to the same product data, see the MCP guide.