Public docs
App API — Apps / Credentials
Create and manage API apps and their credentials.
Phase 1 shell: this docs surface is wired to the existing backend and repo documentation, and will be expanded as the private dashboard comes online.
What an app is
An "app" in opSentry is a set of API credentials tied to your workspace. Each app gets a client_id and client_secret at creation time. Use these for sandbox integrations or to scope API access.
---
POST /apps/create
Create a new app in the workspace.
Request body
{
"workspace_id": 1,
"name": "My Integration",
"description": "Optional description",
"redirect_uri": "https://yourapp.com/callback (optional)"
}Response
{
"success": true,
"app": {
"id": 1,
"name": "My Integration",
"description": "Optional description",
"status": "sandbox",
"client_id": "cli_a1b2c3d4e5f6g7h8",
"client_secret": "48-char hex secret — store this securely, not shown again",
"redirect_uri": "https://yourapp.com/callback"
}
}The client_secret is only returned at creation. Store it immediately.
---
GET /apps/list/{workspace_id}
List all apps for the workspace, newest first.
---
DELETE /apps/delete/{app_id}
Permanently delete an app and its credentials.
Create an app
curl -X POST https://api.opsentry.ai/apps/create \ -H "Content-Type: application/json" \ -d '{ "workspace_id": 1, "name": "Release Pipeline Bot", "description": "Sends changelogs from CI to opSentry" }'