Start authenticated social link REST API
POST
/api/user/security/social/{provider}/start
const url = 'http://127.0.0.1:25737/api/user/security/social/google/start';const options = { method: 'POST', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/user/security/social/google/start \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{}'Starts a provider authorization bound to the authenticated HitKeep account.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Examplegenerated
{}Responses
Section titled “Responses”Provider authorization URL
Media typeapplication/json
object
auth_url
required
string format: uri
Examplegenerated
{ "auth_url": "https://example.com"}Provider unavailable
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}