Security, API key permissions and access
See how to set up access for your team, send requests from your server, and control who can change or share your work.
Home / Security, API key permissions and access
Set up account access
Use the account access form to tell the team which plan you’re considering and what you want to build. We’ll email you an invitation. Follow the link in that email and set a password to activate your account. If you need help signing in, use the contact form to reach the team.
Once you activate your account, use the account portal to create API keys, check usage, and manage billing. Your application reads its results through the API. For example, a developer can create a key in the portal, then use it from a server to read AEO API results for the team’s own reporting tool.
Use HTTPS for both the website at https://aeoapi.dev and API requests to https://api.aeoapi.dev. The account setup guide explains where to find your portal sign-in link.
Choose API key permissions
An API key is the secret your server uses to authenticate a request. Send it in the Authorization header with Bearer and a space before the key. Load the key from your server’s secret store. Keep it out of browser code, public build variables, and checked-in files.
A scope is a named permission on the key. Check the operation and the specific action you intend to call, then grant only the scopes that action needs. A tool that reads saved reports can use analytics:read. A service that starts website audits needs audits:write. If it also reads the audit run, it needs audits:read for that request.
| Area | Scopes |
|---|---|
| Account and usage | account:read, usage:read |
| Brands | brands:read, brands:write |
| Prompts | prompts:read, prompts:write |
| Collection runs | collections:read, collections:write |
| Site audits | audits:read, audits:write |
| Analytics and recommendations | analytics:read, recommendations:read |
| Drafts and review | optimizations:read, optimizations:write |
| Attribution | attribution:read, attribution:write |
Make a read request from your server
Set AEO_API_BASE_URL to https://api.aeoapi.dev and load a key with account:read into AEO_API_KEY. This example calls GET . The response gives you an account overview with limits and source availability. A successful request returns HTTP 200 and uses no credits.
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY"For a coding agent, MCP is the protocol the agent uses to call tools on the hosted server. If hosted MCP is available for your account, use a key with only account:read when the agent just needs the account overview. Store the key in the agent’s secret settings and keep it out of conversations. The MCP setup instructions show the server address and how to call get_account.
Match account roles to the work
The API checks account roles as well as key scopes. A role determines which actions a person or service can perform. The v2 reference lists six roles. All six can read the account overview with account:read. For writes, check the permissions for the specific action.
- Viewer. Can read the account overview and saved reports with their respective scopes.
- Editor. Can start collection runs and submit drafts for review with the required scopes.
- Approver. Can approve a draft or request changes with the required scopes.
- Publisher. Can hand off an approved draft or record its publication with the required scopes.
- Owner. Can start collection, approve drafts, and record publication with the required scopes.
- Service. Can start collection and submit drafts for review with the required scopes.
For example, a team can give an editor the job of preparing a draft and ask an approver to review it. On the Optimizer plan, approval uses PATCH with transition=approve. The call needs the approver or owner role and both optimizations:write and analytics:read. Send expected_revision and content_sha256, the fingerprint of the draft text, to identify the version under review. Your team applies any approved edit to the website separately.
Retry safely and cap credits
- Check the cost before starting. For workflows that offer estimates, set
estimatetotruein the body ofPOST. This returns a quote without starting a run or reserving credits. Use/v2 /runs max_unitsto set the most credits you authorize when the start request accepts that field. Acollectrun has no estimate. Set its cap directly in the start request. - Keep the request key for retries. When starting a collection or an audit, send a key of 8 to 128 characters in the required run start header. Keep the same key and body if you retry that start. A matching retry returns the original response while the key is valid. If you send the same key with a changed body, the API returns HTTP
409. Use a new key for new work. - Send the version you read when updating. For a brand profile update with
PATCHor a saved prompt update with/v2 /brands /{brand_id} PATCH, send the current/v2 /prompts ETaginIf-Match. The tag identifies the version you read. If the version has changed, the API returns HTTP412. Read the latest version and check the changes before retrying the update.
Once a run starts, use GET to check its progress. For an audit, the start response reports estimated_units, reserved_units, and billed_units. If your credit cap covers fewer pages than you requested, check meta.warnings for any reduction in the page limit.
Control access to shared reports
A share link opens a monthly summary for one brand. It shows the month, how many answers qualify for sharing, and how many of those mention the brand. Anyone with the link can read the summary while the link is active and the report still qualifies for sharing. Check the brand and month before sending the link to a client or colleague.
Use PATCH with section=share_link_create and the brand and month. The action needs brands:write and analytics:read. Choose an expiry from 1 to 30 days using expires_in_days. The default is 7 days. Save the returned share_id and use expires_at to see when the link ends.
To end access early, use section=share_link_revoke with the brand ID and share ID. An editor, owner, or service can do this with brands:write. A successful revocation returns HTTP 204 with an empty body. The brand reporting guide shows both requests.
Review data and privacy practices
The privacy policy describes the information AEO API collects through account registration, orders, forms, and support requests. It lists names, email addresses, phone numbers, organization and billing addresses, IP addresses, locale, and payment details among the information collected. The policy explains how AEO API uses personal information to provide the service, respond to requests, and understand usage.
You can email privacy@aeoapi.dev to ask what personal information we hold about you or to request a correction. The privacy rights section also covers requests for deletion and limits on processing. The terms and conditions describe your responsibilities for your account, credentials, and the data you submit.
Send consented events for attribution
Attribution connects recorded visits with actions such as leads or purchases when the events provide enough information to link them. On Optimizer, your server sends the events your application or analytics system already records to POST . Include the required consent_reference. Make sure you have permission to submit the events. The request schema does not require a visitor’s raw email or IP address.
Audit public pages
Website audits inspect public HTTP or HTTPS pages in the requested scope. They respect robots rules, which specify where automated readers may go. Pages that require sign-in and addresses on private networks are outside the audit’s reach. Submit public URLs and check the audit result for any pages it skipped. You can request an audit without adding a script to the website. The website audit guide explains how to read the findings.
Questions
How do I get access to the API?
Request an invitation through the contact form. Accept the emailed invitation and set a password to activate your account. You can then sign in to the account portal and create a key. Read the account setup steps.
Can my browser app call AEO API with my API key?
Keep the key on your server. Have your browser app call your own server, which sends the authenticated request to AEO API. See an authenticated account request.
What key should I give a coding agent that only needs the account overview?
If your account has access to the hosted MCP server, use a key with only account:read for this task. Put the key in the agent’s secret settings. Follow the MCP account read instructions.
Who can approve a content draft?
An approver or owner can approve the draft with the required key permissions. Approval records a decision about the specified draft revision. Your team applies the approved change to your website separately. See the draft approval fields and permissions.
What if my server times out after sending a collection request?
Retry the same start request with the same request key and body. If the API accepted the first request, the retry returns its original response while the request key is valid. Check the run start headers.
Can I close a shared report link early?
Yes. Revoke the link using the brand ID and the share ID returned when you created it. Recipients lose access through that link. See how to revoke a report link.
How do I request a copy or correction of my personal information?
Write to privacy@aeoapi.dev. We may ask you to verify your identity before acting on your request. Read your rights under the privacy policy.
Where can my team send a security questionnaire?
Ask the AEO API team through the contact form about the requirements in your review. Contact the team about a security review.