Fortinet black logo

Authentication example

Authentication example

The following example shows the contents of the request message and the response:

      HTTP post message:
   
url: https://10.0.0.1/fpc/api/login
Content-type: application/json
Payload:
  {
  “user” : “spuser”,
  “password” : “test123”
  }

Response message:
Status : 200 OK
Payload:
  {
  “sid” : “8478V00xYhva_ndcihDi203ru3c1auaUb1icew0W_TT”
  } 
    

Authentication example

The following example shows the contents of the request message and the response:

      HTTP post message:
   
url: https://10.0.0.1/fpc/api/login
Content-type: application/json
Payload:
  {
  “user” : “spuser”,
  “password” : “test123”
  }

Response message:
Status : 200 OK
Payload:
  {
  “sid” : “8478V00xYhva_ndcihDi203ru3c1auaUb1icew0W_TT”
  }