Authentication
Introduction
Email and password are the primary sign-in method. When available, the small third-party sign-in icon below the form provides optional authorization; existing users can link that account in account settings. On first unified login, choose to create a new account without an email, or verify and link an existing Anycap account to retain its balance, team access and history. Forgot your original password? Reset it using your email before linking.
Execution endpoints authenticate with a connection key sent as a Bearer token. Create the key in Agent Access, authorize the sources it may use, and supply it from the runtime environment, for example ANYCAP_API_KEY.
- Send
Authorization: Bearer <ANYCAP_API_KEY>on every request. - Send
Content-Type: application/jsonwith POST bodies. - Do not send browser cookies or an
Originheader; a browser session and a connection key are separate credentials. - Never place a key in prompts, source control or browser code.
BASH
curl -s https://api.anycap.io/api/v1/capabilities/credits.estimate/targets \ -H "Authorization: Bearer $ANYCAP_API_KEY"PreviousIntroduction
NextQuickstart