---
title: "Add social accounts for the authenticated user"
method: POST
path: "/user/social_accounts"
tags: ["users"]
---

# Add social accounts for the authenticated user

`POST /user/social_accounts`

Add one or more social accounts to the authenticated user's profile.

OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.

## Request body

- object
  - `account_urls` string[], required — Full URLs for the social media profiles to add.

## Response `201`

Response

- SocialAccount[]
  - `provider` string, required
  - `url` string, required

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
