cURL
curl --request POST \ --url https://api.getgranite.ai/api/enrollment-tokens \ --header 'Content-Type: application/json' \ --data ' { "description": "<string>", "expires_in_hours": 24 } '
{ "token": "<string>", "org_id": "<string>", "expires_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "used": true, "is_valid": true, "description": "<string>" }
Request to create an enrollment token for driver registration
Optional description/label for the token
Hours until token expires (default 24)
Successful Response
Enrollment token details
Enrollment token string
Organization ID
Token expiration timestamp
Creation timestamp
Whether token has been used
Whether token is still valid for use
Token description