API

S'authentifier

POST/api/crm/v2/application.authorizationv2
operationId: application.authorization

Ouvre une session utilisateur CRM et retourne son identifiant session_id. Les intégrations s'autorisent via un jeton API.

Autorisation

language + role

Corps de la requête application/json

object
loginstring · emailobligatoire

Exemple: example@example.com

passwordstringobligatoire

Exemple: example

not_you_pcboolean

Exemple: true

captcha_tokenstringobligatoire

Exemple: example_reCAPTCHA_token

captcha_versioninteger

Version de reCAPTCHA : 2 ou 3 ; uniquement pour le driver GOOGLE

Exemple: 3

L'une des options
object

Rôle partner

countriesstringobligatoire

Exemple: ru

Réponses

OK

object
L'une des options
object

Retourne session_id

statusstringobligatoire

Valeurs:successerror

Exemple: success

dataobjectobligatoire
need_2faboolean

Exemple: true

session_idstringobligatoire

Exemple: eOJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ0c2kiOjAsIm90cCI6IkZTRW5jcnlwdGVkX1ozTk9aN1l1WFlCSHNhK2hWcmdZMktJb0pkNzR0bE5CaTNKQTMxdEhTOVk9IiwicGFzIjoiRlNFbmNyeXB0ZWRfbCtuY2hsbkVIXC9KM2I3MW1hNXBEQkk0dUVhanlcL2JGWjg1aEZRN2FhemV2eFlMY2ZnTmE5VGtRbHFzMTRVZ05nd2NQTkRzbDJ5UEtKRkxZT0N4TDIzSWtNejVGRWFZdmgrQjh0disrdEtFYz0iLCJzdWIiOiJGU0VuY3J5cHRlZF95dGxiN1k0dGE0VjRmT0Vjem9EWEszN3FNMVpsSkVkZitxTzhPOFZEZUo0PSIsImlzcyI6ImZvb2Rzb3VsLnBybyIsImlhdCI6MTcxMjgyMTk3NiwiZXhwIjoxNzEyODIzNzc2fQ.4gWKujNQ0rcEu2EY-qCGcdi5R3rAprSCbPFOFA-b658gaA73EGvrqlcOQ73BNr3HCVBKB5ziTl54V0ZL48Hd2A