POST
/
v2
/
devices
Create device
curl --request POST \
  --url https://app.pulseguard.nl/api/v2/devices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Web Server 01",
  "hostname": "server01.example.com"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "hostname": "<string>",
    "os": "<string>",
    "status": "online",
    "last_seen": "2023-11-07T05:31:56Z",
    "metrics": {
      "cpu_usage": 123,
      "memory_usage": 123,
      "disk_usage": 123
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
This endpoint allows you to add a new device to your account for monitoring.

Body

name
string
required
A name for your device.
description
string
An optional description for the device.
os
string
The operating system of the device (e.g., linux, windows).

Authorizations

Authorization
string
header
required

API token generated from your PulseGuard dashboard

Body

application/json
name
string
required

Device name

Example:

"Web Server 01"

hostname
string
required

Device hostname or IP address

Example:

"server01.example.com"

description
string

Device description

Example:

"Production web server"

Response

Device created successfully

success
boolean
required
Example:

true

message
string
required

Success message

data
object

Response data as object