SessionsController_create
POST
/sessions
const url = 'https://example.com/sessions';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"name":"example","pairingMethod":"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 \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "name": "example", "pairingMethod": "qr", "phone": "example" }'Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
name
required
string
pairingMethod
string
phone
string
Responses
Sección titulada «Responses»Media typeapplication/json
object
Examplegenerated
{}