Add a social account
Accept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
provider*SourceProviderNameThe name of the source code provider
"bitbucket""github""gitlab"callback_code*stringThe temporary code forwarded by the OAuth provider as a parameter to our callback URL. Must be at least 8 characters.
Created
application/json- response
id*integerThe ID of the given social account
user_id*integerThe current user's ID
provider*SocialAccountProviderThe name of the Social Authentication provider
"bitbucket""clerk""facebook""github""gitlab""google"provider_human_readable*SocialAccountDisplayableNameA formatted version of the provider field value, aligned with the provider's name branding
"Bitbucket""Clerk""Facebook""GitHub""GitLab""Google"provider_user_nickname*stringThe nickname of the user on the Source Authentication provider
is_vcs*booleanTells if the social account provider is a Source Code Provider/Version Control System. e.g. false for Facebook, true for Github
token_expires_at*|The date and time indicating when the authentication token will expire at
created_at*stringThe date and time when the record was created
updated_at*stringThe date and time when the record was last updated
curl -X POST 'https://api.devopness.com/social-accounts' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ -d '{ "provider": "bitbucket", "callback_code": "a606964974b5fb082971"}'{ "id": 85324, "user_id": 6589, "provider": "github", "provider_human_readable": "GitHub", "provider_user_nickname": "Joe Smith", "is_vcs": true, "token_expires_at": "2020-09-25T15:50:48.000000Z", "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T15:50:48.000000Z"}