WayScript HTTP API
Our API provides access to many of the functions and data available to the WayScript client application.
get
https://api.wayscript.com
/processes/{process_id}/detail
Get Process Details
get
https://api.wayscript.com
/workspaces/{workspace_id}
Get Workspace Details
get
https://api.wayscript.com
/workspaces/{workspace_id}/users/self
Get User Details via Application Key
get
https://api.wayscript.com
/lairs/{lair_id}
Get Lair Details
get
https://api.wayscript.com
/workspace-integrations/{workspace_integration_id}
Get Workspace Integration Details
get
http://api.wayscript.com
/workspace-integrations/workspace/{workspace_id}
Get All Workspace Integrations Details
post
https://api.wayscript.com
/webhooks/http-trigger/response/{process_id}
Post HTTP Trigger Response
post
https://api.wayscript.com
/files/lairs/{lair_id}/secrets
Set Lair Secret
post
https://api.wayscript.com
/auth/refresh
Request New Authorization Token
For all calls, it is possible that the process's authorization token can expire during runtime. If this occurs, subsequent API requests will return
401 - Unauthorized
. In order to obtain a new authorization token, follow these steps:- 1.Obtain the refresh token from the
WAYSCRIPT_EXECUTION_USER_REFRESH_TOKEN
environment variable - 2.Call the
Request New Authorization Token
API function to receive a new access token - 3.Save the access token into the
WAYSCRIPT_EXECUTION_USER_TOKEN
environment variable
After these steps, retry any failed call and continue.
Last modified 1mo ago