Validate whether a specified user's session or token is authorized to access a target API.
curl 'https://app.3chat.ai/api/open/authority/certify' \
-X PUT \
-H 'content-type: application/json' \
--data-raw '{
"body": {
"method": "POST",
"uri": "/api/manufacture/workOrder/list",
"session": "NWM0YWQxODgtNmM5Yy00MDg3LWIyOTktNTNmMmFlZDQ0ZTZj",
"token": "7383A52EDC64E8FDFC35A444086924D6"
}
}'| Field | Type | Required | Description |
|---|---|---|---|
method | string | Yes | HTTP method of the target API. Allowed values: GET, POST, PUT, DELETE. |
uri | string | Yes | Path of the target API without the domain, for example /manufacture/workOrder/list. |
session | string | No | User Session ID. Provide either session or token, or both. |
token | string | No | User Token. Provide either token or session, or both. |
For browser requests, these values are stored in cookies. Open Developer Tools → Network → any request → Request Headers → Cookie, and locate:
SESSION=...→ use assessionTOKEN=...→ use astokenmethod→ use the HTTP method of the API you want to authorizeuri→ use the target API path without the domain
Note: This endpoint itself still uses the standard OpenAPI authentication mechanism.
Security
bearerAuth
- Mock serverhttps://threechatai.redocly.app/_mock/apis/3chat-api/api/open/authority/certify
- 3Chat production serverhttps://app.3chat.ai/api/open/authority/certify
curl -i -X POST \
https://threechatai.redocly.app/_mock/apis/3chat-api/api/open/authority/certify \
-H 'Authorization: Bearer <YOUR_Access Token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"method": "GET",
"uri": "string",
"session": "string",
"token": "string"
}'Response
{ "code": 0, "message": "string", "data": { "entity": { … } } }