Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "twitter_account": {
    "twitter_token": "TWITTER_TOKEN",
    "twitter_uid": "TWITTER_UID",
    "screen_name": "NAME",
    "logo_url": "LOGO_URL",
    "account_verified": true,
    "twitter_nickname": "SCREEN_NAME",
    "location": personalSettingsPage
  }
}

Success response body

{
  "id": 2,
  "screen_name": "ekaterinaaaa3",
  "logo_url": "https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png",
  "nickname": "NICKNAME",
  "team_count": 0,
  "account_verified": true
}

Error response body

# in your account
{
  "twitter_uid": ["To connect this social media account to your Workspace, you must first remove it from your Personal accounts"]
}
# for creators
{
  "twitter_uid": ["This social account is already connected to example_1@mail.com, example_2@mail.com Gipper account(s). If you'd like to use this as a workspace account, please ask them to remove in their Profile first"]
}

Errors

Code Description
422 Could not save the entity.

Params

Param name Description
twitter_account
required

Validations:

  • Must be a Hash

twitter_account[twitter_token]
required

Validations:

  • Must be a String

twitter_account[twitter_uid]
required

Validations:

  • Must be a String

twitter_account[screen_name]
required

Validations:

  • Must be a String

twitter_account[logo_url]
required

Validations:

  • Must be a String

twitter_account[account_verified]
optional

Validations:

  • Must be one of: true, false, 1, 0.

twitter_account[twitter_nickname]
required

Validations:

  • Must be a String

twitter_account[location]
optional

Validations:

  • Must be one of: workspaceSettingsPage, signUpForm, guidedWalkthrough, progressMeter, personalSettingsPage, templateBranding.