Skip to content

Check Access Permission

Request

Validate whether a specified user's session or token is authorized to access a target API.


Request example

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"
    }
  }'

Request body

FieldTypeRequiredDescription
methodstringYesHTTP method of the target API. Allowed values: GET, POST, PUT, DELETE.
uristringYesPath of the target API without the domain, for example /manufacture/workOrder/list.
sessionstringNoUser Session ID. Provide either session or token, or both.
tokenstringNoUser Token. Provide either token or session, or both.

Where to obtain the values

For browser requests, these values are stored in cookies. Open Developer Tools → Network → any request → Request Headers → Cookie, and locate:

  • SESSION=... → use as session
  • TOKEN=... → use as token
  • method → use the HTTP method of the API you want to authorize
  • uri → use the target API path without the domain

Note: This endpoint itself still uses the standard OpenAPI authentication mechanism.

Security
bearerAuth
Bodyapplication/json
methodstringrequired

HTTP method

Enum:"GET""POST""PUT""DELETE"
uristringrequired

Request URL

sessionstring

Session ID

tokenstring

Token

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"
  }'

Responses

Headers
any
Bodyapplication/json
codeinteger
messagestring
dataobject(EntityResponseDataCertifyResponseDTO)
Response
{ "code": 0, "message": "string", "data": { "entity": { … } } }