Basics

Provision Website

Changed on

Creates a fully configured website in a single call, skipping the onboarding wizard. Optionally configures competitors, prompts, and a processing schedule. Requires a global API key. Partner integrations may include an external_id to map their own identifier onto the new Athena website. A successful creation also provisions the website's Default prompt schedule in the same transaction.

Beta: This endpoint is in beta. The request and response schemas may change. Website and competitor tracking patterns preserve the submitted host, path case, and query constraints. Apex domains include their www form; explicit www hosts remain distinct. Paths match sections on slash boundaries.

post/api/v1/websites/provision

Request

  • Base URL
    https://api.athenahq.ai
  • Auth
    API key in header x-api-key

Request body

urlstring required

Website URL. Protocol (https://) is stripped automatically. Email addresses and other URLs with a user name (name@example.com) are rejected with 400.

namestring required

Brand name

descriptionstring

Brand description

countrystring

Base country for the website

languagestring

Default language. If omitted, derived from country (e.g., Germany → German). Falls back to English.

industrystring

Industry category. Common values: SaaS & Software, E-commerce & Retail, Healthcare & Medical, Information Technology, Banking & Financial Services, Education & E-learning, Consulting, Manufacturing, Hospitality & Travel, Real Estate, and more. Accepts any string.

identifiersstring[]

Brand names, aliases, and abbreviations used for mention detection. If empty, auto-generated by AI on the first processing run.

external_idstring

Partner-only. An identifier from your own system to map to this Athena website. Accepted only when authenticating with an API key for an organization flagged as a partner. Sending this field as a direct customer returns 403 Forbidden. Must be unique per resource type within your organization — duplicates return 409 with the existing resource in the payload.

Example request

{
  "url": "acme.com",
  "name": "Acme Corp",
  "description": "Enterprise widgets company",
  "country": "United States",
  "language": "English",
  "industry": "SaaS & Software",
  "identifiers": [
    "Acme",
    "Acme Corp"
  ],
  "competitors": [
    {
      "name": "WidgetCo",
      "url": "widgetco.com",
      "identifiers": [
        "WidgetCo"
      ]
    }
  ],
  "prompts": [
    {
      "text": "best widget software",
      "topic": "Products",
      "type": "discovery"
    }
  ],
  "schedule": {
    "days": {
      "Monday": true,
      "Wednesday": true,
      "Friday": true
    },
    "models": {
      "chatgpt": true,
      "gemini": true,
      "perplexity": true
    }
  },
  "external_id": "ws_a7f3b2c9"
}

Response

Website provisioned successfully

billingEntityCreatedboolean required

Whether the billing entity exists after provisioning. When false, entity creation failed even after a retry: the website exists but has no credits, and setting credits fails with a 400 until it is repaired. Contact AthenaHQ support in that case.

Example response

{
  "website": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "url": "acme.com",
    "name": "Acme Corp",
    "orgId": "987e6543-e21b-12d3-a456-426614174000",
    "promptCount": 2,
    "competitorCount": 1,
    "hasSchedule": true,
    "externalId": "ws_a7f3b2c9"
  }
}

Changes

    • warning

      the /// request property's maxLength was set to 500

    • warning

      the // request property's maxLength was set to 255

    • warning

      the // request property's maxLength was set to 2048

    • warning

      the / request property's maxLength was set to 500

    • warning

      the request property's maxLength was set to 255

    • warning

      the // request property's maxLength was set to 2000

    • warning

      the request property's maxLength was set to 2048

    • info

      the request property default value Uncategorized was removed