Skip to main content
POST
/
social-accounts
/
connect
/
{platform}
cURL
curl -X POST https://api.neuraldraft.io/v1/social-accounts/connect/facebook \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"redirect_uri":"https://app.lakesideyoga.uk/settings/social/callback"}'
{
  "oauth_url": "https://www.facebook.com/v19.0/dialog/oauth?client_id=app123&state=abc123",
  "state": "abc123"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

platform
enum<string>
required
Available options:
facebook,
instagram,
twitter,
tiktok,
linkedin,
youtube

Body

application/json
redirect_uri
string<uri>

Where to send the user after the OAuth flow completes.

Example:

"https://app.lakesideyoga.uk/settings/social/callback"

Response

OAuth URL.

oauth_url
string<uri>
required
state
string

Opaque state token. Pass back unchanged on callback.