Skip to main content
POST
/
v1
/
installations
Record Installation
curl --request POST \
  --url https://api.agentpowers.ai/v1/installations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_slug": "<string>",
  "hostname": "<string>",
  "platform": "<string>",
  "source": "agentpowers"
}
'
import requests

url = "https://api.agentpowers.ai/v1/installations"

payload = {
    "source_slug": "<string>",
    "hostname": "<string>",
    "platform": "<string>",
    "source": "agentpowers"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    source_slug: '<string>',
    hostname: '<string>',
    platform: '<string>',
    source: 'agentpowers'
  })
};

fetch('https://api.agentpowers.ai/v1/installations', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "<string>",
  "source_slug": "<string>",
  "hostname": "<string>",
  "platform": "<string>",
  "source": "<string>",
  "message": "Installation recorded"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Provide a Clerk JWT or a long-lived CLI token (prefix ap_cli_). Pass as Authorization: Bearer <token>.

Body

application/json
source_slug
string
required
hostname
string
required
Required string length: 1 - 255
platform
string
required
Pattern: ^(code|cowork|web|cli|mcp)$
source
string
default:agentpowers
Pattern: ^(agentpowers|clawhub)$

Response

Successful Response

id
string
required
source_slug
string
required
hostname
string
required
platform
string
required
source
string
required
message
string
default:Installation recorded