# Create a connect link

### Create a connect link

`POST /api/v1/connect-links`

Operation ID: `createConnectLink`

A link someone outside the workspace, such as a client, opens to connect their LinkedIn or Instagram account themselves. They need no Needle account, and their password never goes through you. Accounts connected through it are yours. Pass reconnectAccountId for a link that only signs that account in again. Links expire after 24 hours. A new connect link needs a free account license in the workspace. Each account connected through a link sends an account_connected event (account_reconnected for a reconnect link), which you can get with a [webhook](https://needle.app/docs/webhooks) or Search events.

**Request body** (required)

- `reconnectAccountId` (string · uuid, optional): A connected account you own that needs signing in again. The link then only reconnects that account, with its login filled in. Left out, the link connects new accounts.

**201**: Link created.

- `url` (string, required): The page to send. Whoever opens it can sign in without a Needle account.
- `expiresAt` (string · date-time, required)
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `402`: The workspace has no free account license.
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
