Scripts

Expose a script as an external HTTP API endpoint

Changed on

Returns the endpoint plus the plaintext bearer token (when authMode is 'bearer').

post/api/scripts/{id}/apis

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/scripts/{id}/apis
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Request body

authMode'none' | 'bearer'
labelstring
agentIdstring

Response

Endpoint created

idstring required
scriptIdstring required
agentIdstring required
authMode'none' | 'bearer' required
enabledboolean required
labelstring nullable required
callCountnumber required
lastUsedAtstring nullable required
createdAtstring required
tokenstring nullable required
warningsstring[]

Advisory quickjs-executor compatibility findings for the script.

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status