Skip to content

Create Connect

  Method: POST

/api/ps/connects

  Headers

  • 'Content-Type': 'application/json'

  Parameters

  • email - email for connect, required
  • locale - EN-en or RU-ru, required

Code samples

await fetch('/api/ps/connects', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        email: 'keygenqt@gmail.com',
        locale: 'EN-en',
    })
}).then(async (response) => {
    console.log(response)
})
  HTTP response status codes
Status code Description
200 OK
400 Bad Request
422 Form validate
500 Internal Error

  Status: 400

{
    "code": 400,
    "message": "Bad Request"
}

  Status: 422

{
    "code": 422,
    "message": "Error creating connect, please check the correctness of data entry",
    "validate": [
        {
            "filed": "email",
            "errors": [
                "Must not be null and not blank"
            ]
        }
    ]
}

  Status: 500

{
    "code": 500,
    "message": "Internal Error"
}