Connected accounts

Create a connect link

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.

POST

/api/v1/connect-links

Request bodyrequired

reconnectAccountIdoptional

string · uuid

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.

Response

201Link created.

url

string

The page to send. Whoever opens it can sign in without a Needle account.

expiresAt

string · date-time

requestId

string · uuid

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

Search docs

Search documentation, API reference, and MCP tools

We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy