REST API
Call Leap360 directly over HTTPS.
Base URL:
https://b0vyk178b7.execute-api.us-east-1.amazonaws.comSend your API key in the x-api-key header. Keys look like leap360_ followed by 32 hexadecimal characters.
Kill switch
| Method and path | Body | What it does |
|---|---|---|
GET /v1/projects/{projectId}/agents/{agentId}/status | Read an agent's status | |
POST /v1/projects/{projectId}/agents/{agentId}/status | { "status": "SUSPENDED" } | Stop an agent |
POST /v1/projects/{projectId}/status | { "status": "SUSPENDED" } | Stop the whole project |
Setting ACTIVE needs a person signed in to the console.
Policies
| Method and path | What it does |
|---|---|
POST /v1/projects/{projectId}/policies | Create a policy. See Policies for the body. |
Responses for stopped agents
| Status | Code | Meaning |
|---|---|---|
| 403 | AGENT_HALT | This agent is stopped |
| 403 | GOVERNANCE_HALT | The whole project is stopped |
| 403 | PERSON_REQUIRED | The change loosens governance and needs a signed-in person |
| 401 | No API key, or the key format is invalid |
For everything else, the JavaScript and Python clients wrap the API and are the supported way to use it during the beta.