SessionsController_connect
POST
/sessions/{id}/connect
const url = 'https://example.com/sessions/example/connect';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"method":"qr","phone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/sessions/example/connect \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "method": "qr", "phone": "example" }'Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»id
required
string
Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
method
string
phone
string