Documentation · API reference
POST
/api/v1/me/social/{id}/connectConnect (D2)
This page as Markdown, or in an AI chatMore ways to read this page
Connect (D2): link a service to the member who is signed in, whatever address it has. Answers with the service's page to go to.
# Connect (D2)
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/post-me-social-id-connect
`POST /api/v1/me/social/{id}/connect`
Connect (D2): link a service to the member who is signed in, whatever address it has. Answers with the service's page to go to.
## The answer
200, `OAuthGo`: Where the browser goes next.
- `to` (string, needed)
## Asking
```sh
curl -X POST https://tidekeeper.eu/api/v1/me/social/{id}/connect \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
The answer
Status 200
OAuthGo Where the browser goes next.
- to
- stringneeded
Asking
curl -X POST https://tidekeeper.eu/api/v1/me/social/{id}/connect \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/me/social/{id}/connect", { method: "POST", headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());