---
title: "Set account association"
method: POST
path: "/v2/studio/deployment/account-association"
tags: ["studio"]
---

# Set account association

`POST /v2/studio/deployment/account-association`

Associates a generated miniapp with a Farcaster account using a JFS-signed domain association. Requires API key authentication. Note: Studio CU is tracked based on LLM token usage, not per API call.

## Request body

- object
  - `account_association` object, required — Signed domain association linking this deployment to a Farcaster account
    - `header` string, required — Base64URL encoded JFS header
    - `payload` string, required — Base64URL encoded JFS payload
    - `signature` string, required — Base64URL encoded JFS signature
  - `deployment_id` string, uuid — Deployment ID (UUID). Required if name not provided.
  - `fid` integer — Farcaster ID of the user; if not provided, namespace must be provided
  - `name` string — Kubernetes deployment name. Required if deployment_id not provided.
  - `namespace` string — Optional Kubernetes namespace. If not provided, will query for the active namespace for the given FID.

## Response `200`

Success

- object
  - `message` string, required — Status message from the miniapp generator
  - `success` boolean, required

## Other responses

- `400` — Bad Request
- `404` — Resource not found
- `500` — Server Error

---

[API](https://skmtc.dev/neynar/apis/neynar-api.md) · [All operations](https://skmtc.dev/neynar/apis/neynar-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/neynar/neynar-api/revisions/dbb91bfb0d1a/schema)
