Skip to main content

Get Plant Inspection Token Login Link

Written by Support

Overview

Generates a single-use, short-lived login link that takes a staff member straight into a plant inspection — no manual sign-in step. It's the first of two steps:

  1. Call this endpoint with the plant and staff IDs (id_plant, id_staff) to generate a token_login_link.

  2. Open that link to authenticate the staff member and start the inspection for that plant.

Use it when an external system needs to hand a staff user directly into the ComplyFlow plant‑inspection screen (e.g. from a third‑party asset or maintenance tool).

⚠️ The link is valid for 1 minute. Once it expires the token can no longer be used to log in and you must request a new link.

Authentication instructions

Refer to the Authentication method for Authentication Methods (for Login and Logout).

Permissions Required

The user required the permissions below:

  • API User

  • User is Staff

  • Users have View Staff Permission

Please also refer to the Permissions Overview guide.

Query parameters

FIELD

TYPE

DESCRIPTION

Example

REQUIRED

DEFAULT

PATTERN

-

-

-

-

-

-

Body properties/Payload

FIELD

TYPE

DESCRIPTION

REQUIRED

id_plant

integer

Plant ID

Yes

id_staff

integer

Staff ID

Yes

Request Example

curl --location 'http://test.complyflow.com.au/app/public/index.php/api/acu/staff/start-plant-inspection' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: [...]' \
--header 'Cookie: [...]' \
--form 'id_plant="70"' \
--form 'id_staff="692"'

Response Example

The API Request returns a login link.

{
"token": "",
"data": {
"success": true,
"token_login_link": "http://test.complyflow.com.au/app/public/index.php/audit/plant-inspection/token-login/%242y%2410%24Ne0ZaOKfCP29Nl6NDkmFRezCR"
}
}

The token login active period is 1 minute, if the active period expires, the token cannot be used to login and start inspection.

Did this answer your question?