---
title: "Submit the code the provider's sign-in page shows [write]"
method: POST
path: "/model-subscriptions/{provider}/logins/{loginId}/code"
---

# Submit the code the provider's sign-in page shows \[write\]

`POST /model-subscriptions/{provider}/logins/{loginId}/code`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/model-subscriptions/{provider}/logins/{loginId}/code`
- Auth: HTTP bearer

## Path parameters

- `provider` 'anthropic' | 'openai' | 'cursor' | 'xai' | 'meta', required
- `loginId` string, required

## Request body

- ModelSubscriptionLoginCode
  - `code` string, required

## Response `204`

Handed to the waiting CLI

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/model-subscriptions/:provider/logins/:loginId/code/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
