# AEO API Typescript > Set up the server-side TypeScript client, handle API errors and find the method for your AEO workflow. The full text is at https://aeoapi.dev/docs/sdks/typescript/llms-full.txt. The site index is at https://aeoapi.dev/llms.txt. ## Pages - [AEO API TypeScript SDK](https://aeoapi.dev/docs/sdks/typescript): Set up the server-side TypeScript client, handle API errors and find the method for your AEO workflow. ([markdown](https://aeoapi.dev/docs/sdks/typescript.md)) - [AeoClient](https://aeoapi.dev/docs/sdks/typescript/AeoClient): Create a server-side client. Each endpoint method sends your key in the Authorization header using the Bearer scheme. ([markdown](https://aeoapi.dev/docs/sdks/typescript/AeoClient.md)) - [baseUrl](https://aeoapi.dev/docs/sdks/typescript/baseUrl): Read the API origin configured on this client. Use it when resolving a relative URL returned by the API. ([markdown](https://aeoapi.dev/docs/sdks/typescript/baseUrl.md)) - [toJSON](https://aeoapi.dev/docs/sdks/typescript/toJSON): Serialize the client configuration when you need to check which API origin an integration uses. ([markdown](https://aeoapi.dev/docs/sdks/typescript/toJSON.md)) - [ifMatchHeader](https://aeoapi.dev/docs/sdks/typescript/ifMatchHeader): Format a resource revision for the If-Match request header. When calling an SDK method, you can also pass the revision directly in options.ifMatch. ([markdown](https://aeoapi.dev/docs/sdks/typescript/ifMatchHeader.md)) - [paginate](https://aeoapi.dev/docs/sdks/typescript/paginate): Read a cursor-based list one page at a time when you need the response headers, request ID or page metadata. ([markdown](https://aeoapi.dev/docs/sdks/typescript/paginate.md)) - [iterItems](https://aeoapi.dev/docs/sdks/typescript/iterItems): Process one record at a time across a cursor-based list. For example, iterate through all brands without tracking the next cursor yourself. ([markdown](https://aeoapi.dev/docs/sdks/typescript/iterItems.md)) - [itemsOf](https://aeoapi.dev/docs/sdks/typescript/itemsOf): Extract records from one JSON list response. Use this when you already have a page and want to process its rows. ([markdown](https://aeoapi.dev/docs/sdks/typescript/itemsOf.md)) - [waitForRun](https://aeoapi.dev/docs/sdks/typescript/waitForRun): Poll an accepted run until it finishes or needs approval. For Brave submissions, the helper returns at submitted or failed. ([markdown](https://aeoapi.dev/docs/sdks/typescript/waitForRun.md)) - [v2GetAccount](https://aeoapi.dev/docs/sdks/typescript/v2GetAccount): Check the plan and limits for the account that owns your API key. Set view to usage to read consumption for a billing period. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetAccount.md)) - [v2PatchAccount](https://aeoapi.dev/docs/sdks/typescript/v2PatchAccount): Define a tracking field for citations, prompts or topics, or set field values for records. The example adds a text field for citations. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchAccount.md)) - [v2GetBrands](https://aeoapi.dev/docs/sdks/typescript/v2GetBrands): Find a brand ID before requesting its prompts or reports. Use view categories when you need a category ID for a new brand. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetBrands.md)) - [v2PostBrands](https://aeoapi.dev/docs/sdks/typescript/v2PostBrands): Create a brand using its name, categories, domains and markets. Use the ID in the response to request reports and start runs for that brand. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PostBrands.md)) - [v2GetBrandsBrandId](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandId): Read settings for one brand. The profile view includes competitor information. Other views return locations, schedules, voice settings or connection details. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandId.md)) - [v2PatchBrandsBrandId](https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandId): Update brand details, schedules or connections. To rename a brand, send section brand, action update and the revision you last read. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandId.md)) - [v2GetPrompts](https://aeoapi.dev/docs/sdks/typescript/v2GetPrompts): Browse the prompt library or request prompt coverage, history, topics or an export. Start with the library to find prompt IDs. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetPrompts.md)) - [v2PostPrompts](https://aeoapi.dev/docs/sdks/typescript/v2PostPrompts): Create a prompt for a market and intent. Other actions build suggestions, preview candidates or import a set. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PostPrompts.md)) - [v2PostRuns](https://aeoapi.dev/docs/sdks/typescript/v2PostRuns): Start a workflow or request its estimate. The collection example prices a prompt and market before you request any answers. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PostRuns.md)) - [v2PatchPrompts](https://aeoapi.dev/docs/sdks/typescript/v2PatchPrompts): Change a tracked prompt, prompt set or topic. To revise a question, pass its prompt_id and new text with the current revision. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchPrompts.md)) - [v2GetRuns](https://aeoapi.dev/docs/sdks/typescript/v2GetRuns): List managed runs or saved checks for a brand. Use the managed view to find recent runs and review their charges. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetRuns.md)) - [v2GetRunsRunId](https://aeoapi.dev/docs/sdks/typescript/v2GetRunsRunId): Check the state of a run or retrieve an estimate. Keep the prefix when passing a qualified ID such as job: followed by the job ID. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetRunsRunId.md)) - [v2DeleteRunsRunId](https://aeoapi.dev/docs/sdks/typescript/v2DeleteRunsRunId): Request cancellation of a collection job, managed run or audit. Pass the qualified ID returned by the start request. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2DeleteRunsRunId.md)) - [v2GetAnalyticsDataset](https://aeoapi.dev/docs/sdks/typescript/v2GetAnalyticsDataset): Read a named dataset for a brand. Choose visibility for mention rates and visibility scores, or citation_gaps to investigate missing citations. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetAnalyticsDataset.md)) - [v2PostPassagesSearch](https://aeoapi.dev/docs/sdks/typescript/v2PostPassagesSearch): Find saved passages for a brand by the words in a query. Use a passage ID from the results when you add supporting material to an editorial draft. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PostPassagesSearch.md)) - [v2GetRecommendations](https://aeoapi.dev/docs/sdks/typescript/v2GetRecommendations): Read recommended actions for a brand. The diagnosis view lists the issue, supporting evidence and proposed action. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetRecommendations.md)) - [v2PatchRecommendations](https://aeoapi.dev/docs/sdks/typescript/v2PatchRecommendations): Change the status of an item on the recommendations board. Include the item ID and expected revision in the edits array. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchRecommendations.md)) - [v2PutBrandsBrandIdDraftsDraftId](https://aeoapi.dev/docs/sdks/typescript/v2PutBrandsBrandIdDraftsDraftId): Create a draft under a brand using a draft ID you supply. The blog example references a content item and source passage. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PutBrandsBrandIdDraftsDraftId.md)) - [v2GetBrandsBrandIdDrafts](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdDrafts): List drafts for one brand. Filter by status to build a review queue, or use item_id to find drafts for a content item. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdDrafts.md)) - [v2GetBrandsBrandIdDraftsDraftId](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdDraftsDraftId): Open a specific draft before editing or reviewing it. Supply the brand ID and draft ID from the draft list. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdDraftsDraftId.md)) - [v2PatchBrandsBrandIdDraftsDraftId](https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandIdDraftsDraftId): Edit a draft or move it through review. To submit it, send transition submit with the expected_revision from your last read. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchBrandsBrandIdDraftsDraftId.md)) - [v2PostAttributionEvents](https://aeoapi.dev/docs/sdks/typescript/v2PostAttributionEvents): Send referral, conversion or refund events that you have consent to record. Give each event its own external_event_id and consent_reference. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PostAttributionEvents.md)) - [v2GetReports](https://aeoapi.dev/docs/sdks/typescript/v2GetReports): Read a monthly brand report, compare months or look up the outcome of an action. Pick the report view for one brand and month. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetReports.md)) - [v2PatchReports](https://aeoapi.dev/docs/sdks/typescript/v2PatchReports): Create or revoke access to a shared report. For a new link, supply the brand and the report month. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PatchReports.md)) - [v2PutBrandsBrandIdEvidenceKindKey](https://aeoapi.dev/docs/sdks/typescript/v2PutBrandsBrandIdEvidenceKindKey): Save evidence under a brand, key and evidence kind. A keyword dataset needs its measurements, source revision and permission to use the data. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2PutBrandsBrandIdEvidenceKindKey.md)) - [v2DeleteBrandsBrandIdEvidenceKindKey](https://aeoapi.dev/docs/sdks/typescript/v2DeleteBrandsBrandIdEvidenceKindKey): Remove a specific saved record from a brand. For a keyword dataset, pass its source_revision to identify the version you want to remove. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2DeleteBrandsBrandIdEvidenceKindKey.md)) - [v2GetBrandsBrandIdEvidenceKindKey](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdEvidenceKindKey): Look up selected keywords in a saved dataset for one country and language. Pass the dataset key before the evidence kind in this SDK method. ([markdown](https://aeoapi.dev/docs/sdks/typescript/v2GetBrandsBrandIdEvidenceKindKey.md))