Dageno Open API
    • Introduction
    • Authentication
    • Errors and Error Responses
    • MCP
    • GEO Analysis Query Parameter Guide
    • API
      • Get brand base information
        GET
      • Execute GEO analysis query
        POST
      • List topics
        GET
      • List prompts
        GET
      • List responses by prompt
        GET
      • Get response detail by prompt
        GET
      • List citation domains
        GET
      • List citation URLs
        GET
      • List citation domains by prompt
        GET
      • List citation URLs by prompt
        GET
      • List content opportunities
        GET
      • List backlink opportunities
        GET
      • List community opportunities
        GET

    Errors and Error Responses

    1. Error Response Shape#

    All failed requests return a unified structure:
    {
      "error": true,
      "code": 400,
      "message": "Bad Request"
    }
    Field definitions:
    error: always true.
    code: defaults to the HTTP status code; if business logic explicitly sets code, that value is returned.
    message: human-readable error message string.

    2. HTTP Status Semantics#

    HTTP StatusDefault codeMeaning
    400400Invalid request params or DSL rule violations
    401401Missing, invalid, or expired x-api-key
    403403API key exists but is not allowed (for example, inactive)
    500500Internal server error

    3. Authentication Error List#

    HTTPmessage
    401x-api-key header is required
    401Invalid project API key
    401Project API key has expired
    401Project owner not found
    403Project API key is not active

    4. Common GEO DSL 400 Errors#

    Most of the following come from POST /api/v1/open-api/geo/analysis:
    messageTrigger condition
    entity requiredMissing target.entity
    analysis.type requiredMissing analysis.type
    analysis.type not supported: <type>Unsupported analysis type
    metrics requiredMissing or empty target.metrics
    entity not supportedUnsupported entity
    metric not supported: <metric>Unsupported metric
    metric not supported by entity: <metric>Metric/entity mismatch
    metric not supported by analysis: <metric>Metric/analysis-type mismatch
    ranking.orderBy must be included in metricsorderBy is not included in metrics
    ranking.direction invalidDirection is not asc or desc
    correlation requires exactly 2 metricsCorrelation must contain exactly 2 metrics
    distribution requires exactly 1 metricDistribution must contain exactly 1 metric
    matrix requires exactly 1 metricMatrix must contain exactly 1 metric
    matrix requires entity: platformMatrix supports platform entity only
    matrix requires analysis.matrix.rowDimension (brand or topic)Missing matrix rowDimension
    ai_mention is not supported for matrix analysisai_mention is not allowed in matrix analysis

    5. Validation-driven 400 Errors#

    Type/validation mismatches in query/body can also return 400. Typical cases:
    Invalid ISO datetime values (for example, startAt / endAt).
    Non-numeric pagination values (for example, page / pageSize).
    Enum values outside allowed range (for example, sortOrder must be 1 or -1).

    6. Client-side Handling Recommendations#

    First classify by HTTP status (401 / 403 / 400 / 500).
    Log code + message + requestId (if available).
    Do not retry 401/403; use limited exponential-backoff retries for 500.
    Modified at 2026-03-29 06:42:30
    Previous
    Authentication
    Next
    MCP
    Built with