> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Social Accounts API (forældet)

> Social Accounts er det tidligere offentlige navn for External Accounts.

Eksisterende integrationer kan fortsætte med at kalde disse forældede endpoints, mens de migrerer; hvert svar peger på det tilsvarende External Accounts-endpoint.

Brug External Accounts API'et til alle nye integrationer. External account-id'er beholder deres `sacc_`-præfiks, og den underliggende ressource er uændret.

## Endpoints

| Endpoint | Anmodning |
| - | - |
| [Vis Social Accounts](https://docs.whop.com/da/api-reference/social-accounts/list-social-accounts.md) | GET `/social_accounts` |
| [Opret en Social Account](https://docs.whop.com/da/api-reference/social-accounts/create-a-social-account.md) | POST `/social_accounts` |
| [Opdater](https://docs.whop.com/da/api-reference/social-accounts/refresh.md) | POST `/social_accounts/{id}/refresh` |
| [Forbind en Social Account](https://docs.whop.com/da/api-reference/social-accounts/connect-a-social-account.md) | POST `/social_accounts/connect` |
| [Slet en Social Account](https://docs.whop.com/da/api-reference/social-accounts/delete-a-social-account.md) | DELETE `/social_accounts/{id}` |

## Attributter

**id** `string` *required*

Unik identifikator for den sociale konto.

**error** `string | null` *required*

Hvorfor denne sociale konto i øjeblikket ikke kan bruges til annoncering — en mislykket
deling eller en begrænsning fra Metas side. Null, når kontoen er sund.

**external\_id** `string | null` *required*

Det platformspecifikke id for denne sociale konto.

**name** `string | null` *required*

Den sociale kontos visningsnavn på platformen.

**parent\_social\_account** `object | null` *required*

Den sociale konto, som denne tilhører på platformen, f.eks. den Facebook-side, der ejer en Instagram-konto. Null, når den sociale konto står alene, eller når den er en partner.

> [accordion] Egenskaber
>
> **id** `string` *required*
>
> Social account-id med præfikset `sacc_`.
>
> **external\_id** `string | null` *required*
>
> Det platformspecifikke id for den overordnede sociale konto.
>
> **name** `string | null` *required*
>
> Den overordnede sociale kontos visningsnavn på platformen.
>
> **platform** `string` *required*
>
> Den platform, som den overordnede sociale konto findes på.
>
> Tilgængelige muligheder: `x`, `instagram`, `youtube`, `tiktok`, `facebook`, `discord`, `telegram`, `linkedin`, `snapchat`, `klaviyo`, `quickbooks`, `aimerce`
>
> **profile\_picture\_url** `string | null` *required*
>
> Den URL, hvor den overordnede sociale kontos profilbillede kan
> tilgås.
>
> **username** `string | null` *required*
>
> Den overordnede sociale kontos brugernavn på platformen.
>
> **verified** `boolean` *required*
>
> Om den overordnede sociale konto er verificeret på platformen.

**partnership\_status** `string | null` *required*

Altid `null`. Partnerskabsannoncer er ikke længere tilgængelige.

**platform** `string` *required*

Den platform, som den sociale konto findes på.

Tilgængelige muligheder: `x`, `instagram`, `youtube`, `tiktok`, `facebook`, `discord`, `telegram`, `linkedin`, `snapchat`, `klaviyo`, `quickbooks`, `aimerce`

**profile\_picture\_url** `string | null` *required*

Den URL, hvor den sociale kontos profilbillede kan tilgås.

**scopes** `string[]` *required*

Rettigheder, som Whop beholder specifikt for denne sociale konto. For eksempel kan Whop
anmode om muligheden for at køre annoncer, der bruger denne sociale kontos
identitet, hvilket afspejles af `advertise`. Forbindelser til personlige profiler har ingen
yderligere Whop-scopes.

**url** `string | null` *required*

Den URL, hvor den sociale konto kan tilgås på platformen. Null, mens en
Whop-ejet konto stadig er ved at blive klargjort.

**username** `string | null` *required*

Den sociale kontos brugernavn på platformen. Null, mens en Whop-ejet
konto stadig er ved at blive klargjort, og på platforme uden brugernavne, såsom
Klaviyo.

**verified** `boolean` *required*

Om den sociale konto er verificeret på platformen.

```json SocialAccount theme={null}
{
	"id": "sacc_xxxxxxxxxxxx",
	"external_id": "17841400000000000",
	"name": "Pickaxe Pro",
	"parent_social_account": {
		"id": "sacc_yyyyyyyyyyyy",
		"platform": "facebook",
		"username": "pickaxepro",
		"name": "Pickaxe Pro",
		"profile_picture_url": "https://img.whop.com/sacc_yyyyyyyyyyyy.png",
		"verified": true,
		"external_id": "112233445566778"
	},
	"platform": "instagram",
	"profile_picture_url": "https://img.whop.com/sacc_xxxxxxxxxxxx.png",
	"scopes": ["advertise"],
	"partnership_status": null,
	"error": null,
	"url": "https://instagram.com/pickaxepro",
	"username": "pickaxepro",
	"verified": true
}
```


## Related topics

- [Create a Social Account](https://docs.whop.com/da/api-reference/social-accounts/create-a-social-account.md)
- [Delete a Social Account](https://docs.whop.com/da/api-reference/social-accounts/delete-a-social-account.md)
- [List Social Accounts](https://docs.whop.com/da/api-reference/social-accounts/list-social-accounts.md)
