Skip to Content
Social Accounts

Get status of a social account

GET
/social-accounts/{social_account_provider}/status

Path Parameters

social_account_provider*string

The social account provider name.

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
provider*string

Name of the provider

connected*boolean

If the account is currently connected

connect_url*string

URL of the connection

Example Request
curl -X GET 'https://api.devopness.com/social-accounts/gitlab/status' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
{  "provider": "gitlab",  "connected": false,  "connect_url": "https://gitlab.com/oauth/authorize?client_id=%3CSET-DEVOPNESS-GITLAB-CLIENT-ID-HERE%3E&redirect_uri=http%3A%2F%2Fd2-social-provider-redirect-url.com%3Fprovider%3Dgitlab&scope=read_user+email+api&response_type=code"}