curl --request POST \
--url https://api.anchorbrowser.io/v1/identities \
--header 'Content-Type: application/json' \
--header 'anchor-api-key: <api-key>' \
--data '
{
"name": "My Work Account",
"source": "https://example.com/login"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "pending",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"code": 123,
"message": "<string>"
}
}Create Identity
Creates a new identity for the given source. Credentials are optional.
curl --request POST \
--url https://api.anchorbrowser.io/v1/identities \
--header 'Content-Type: application/json' \
--header 'anchor-api-key: <api-key>' \
--data '
{
"name": "My Work Account",
"source": "https://example.com/login"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "pending",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"code": 123,
"message": "<string>"
}
}Authorizations
API key for your Anchor Browser account, sent as the anchor-api-key header on every
request. Create one at app.anchorbrowser.io (API Access),
or obtain one programmatically via the unauthenticated agent-access flow
(POST /v1/agent-access).
Query Parameters
Whether to validate the identity asynchronously. Defaults to true.
Body
The source URL for the identity (e.g., login page URL)
Name of the identity. Defaults to "Unnamed Identity" if not provided.
Optional credentials to associate with this identity (for example username/password or authenticator secrets). Omit this field or supply an empty array when you only need an identity for the given source URL and optional metadata.
- username_password
- authenticator
- custom
Show child attributes
Show child attributes
Optional metadata for the identity
Optional application name to associate with the identity
Optional application description
Response
Identity created successfully
Was this page helpful?

