---
title: "Reserve a sign-in to add a Claude or ChatGPT account (supports Idempotency-Key)"
method: POST
path: "/v1/agent-accounts/sign-in"
tags: ["Agent accounts"]
---

# Reserve a sign-in to add a Claude or ChatGPT account (supports Idempotency-Key)

`POST /v1/agent-accounts/sign-in`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/agent-accounts/sign-in`
- Auth: HTTP bearer

## Query parameters

- `project_id` string, uuid

## Request body

- object
  - `provider` union, required
    - 'claude'
    - 'codex'
  - `workspace_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `label` string
  - `scope` union: Who may make it the active account. personal (every sign-in unless set otherwise): only the member who added it, as an owner or admin. team: any owner or admin.
    - 'personal'
    - 'team'

## Response `200`

Default Response

- object
  - `sign_in_id` string, uuid, required: UUIDv7, lowercase canonical form.
  - `provider` union, required
    - 'claude'
    - 'codex'
  - `expires_at` string, date-time, required: RFC 3339 UTC timestamp with Z.

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

[API](https://skmtc.dev/shardflux/apis/shardflux-api.md) · [All operations](https://skmtc.dev/shardflux/apis/shardflux-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shardflux/apis/shardflux-api/revisions/ea685f7b39c4?raw)
