Skip to content

    v2GetRecommendations

    Read recommended actions for a brand. The diagnosis view lists the issue, supporting evidence and proposed action.

    See the REST reference for GET /v2/recommendations.

    Signature

    v2GetRecommendations(
      options?: {
        signal?: AbortSignal;
        action_id?: string;
        action_type?: "create_content" | "update_content" | "outreach" | "fix_listing" | "update_robots" | "unblock_crawler" | "add_schema" | "fix_schema" | "fix_business_facts";
        assignee?: string | null;
        brand_id?: string;
        channel?: "site_audit" | "owned_content" | "social" | "outreach" | null;
        content_type?: string | null;
        cursor?: string;
        include_citation_benchmark?: boolean;
        include_citation_projection?: boolean;
        item_id?: string | null;
        limit?: number;
        location_id?: string;
        month?: string | null;
        offset?: number;
        priority?: "high" | "medium" | "low" | null;
        prompt_id?: string | null;
        report_id?: string | null;
        status?: "open" | "resolved" | "dismissed" | "new" | "in_progress" | "completed" | "archived" | "done";
        type?: "debugger" | "content" | "citation" | "technical" | "local";
        view?: "diagnosis" | "board" | "action";
      },
    ): Promise<ApiResponse<unknown>>

    Parameters

    options
    Pass the named options in the signature. The selected action or view determines which fields are required.
    options.signal
    Optional AbortSignal to cancel the HTTP request.
    options.brand_id
    string (uuid), required for this request. brand_id
    options.view
    "diagnosis".

    Return value

    Promise<ApiResponse<unknown>>. Each entry in data includes an ID, priority, action_type and status. Use the ID to look up the action.

    Errors

    • The SDK throws AeoApiError if the API returns an error. Inspect status, code, fieldErrors and requestId.
    • AeoTransportError means the request failed to connect or the client could not finish reading a successful response. Invalid JSON in a successful response throws SyntaxError. If you abort the request, the SDK throws the reason from the AbortSignal.
    • For HTTP 422, check fieldErrors for the input field and validation message.

    TypeScript example

    import { AeoClient } from "@aeoapi/aeo-sdk";
    
    const apiKey = process.env.AEO_API_KEY;
    if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
    const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });
    
    // Substitute your own record IDs and values.
    const response = await client.v2GetRecommendations({
      "brand_id": "00000000-0000-4000-8000-000000000001",
      "view": "diagnosis"
    });
    console.log(response.status, response.body);

    Requests by feature

    Recommendations and visibility analyst

    See TypeScript client setup for authentication, timeouts and retry settings.