{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postonce/main/json-schema/postonce-connect-account-response-schema.json",
  "title": "ConnectAccountResponse",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/postonce-api-openapi.json#/components/schemas/ConnectAccountResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "hosted_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "authorization_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Five-minute browser connection URL bound to the API-key profile with signed state. OAuth platforms return a direct provider URL; Bluesky returns a PostOnce-hosted app-password form; Farcaster returns a PostOnce-hosted managed-signer approval flow; Nostr returns a PostOnce-hosted NIP-46 remote-signer flow; Telegram returns a PostOnce-hosted flow that adds @PostOnceBot as a channel admin."
        },
        "mode": {
          "type": "string",
          "enum": [
            "credential_form_url",
            "managed_signer",
            "remote_signer",
            "oauth_authorization_url"
          ]
        },
        "platform": {
          "type": "string"
        }
      }
    }
  }
}