Fortinet Document Library

Version:


Table of Contents

Download PDF
Copy Link

Login

POST

URI:

  • /api/v1/login

Input Fields:

Field Name Type Required

Description

client_id string Yes The client_id.
client_secret string Yes The client_secret.
Example request body:

Input:

{

'client_id': '12345678-abcd-efgh-1234-xxxxxxxxxxxx',

'client_secret': 'xxxxxx'

}

Example of successful response body:

Return:

{

'access_token': 'xxxxxx',

'expires_in': 3600

}

Note

This API is only used for a client to get an access token to finalize authentication for the API service. By default, the access token expires in an hour (i.e., 3600 seconds). The client does not need to call the API when it has an active access token.

Login

POST

URI:

  • /api/v1/login

Input Fields:

Field Name Type Required

Description

client_id string Yes The client_id.
client_secret string Yes The client_secret.
Example request body:

Input:

{

'client_id': '12345678-abcd-efgh-1234-xxxxxxxxxxxx',

'client_secret': 'xxxxxx'

}

Example of successful response body:

Return:

{

'access_token': 'xxxxxx',

'expires_in': 3600

}

Note

This API is only used for a client to get an access token to finalize authentication for the API service. By default, the access token expires in an hour (i.e., 3600 seconds). The client does not need to call the API when it has an active access token.