GET /api/v1/scripts/{id}

This endpoint is used to get a script by its ID. If the ID is -1, it returns all scripts.

Scripts are disabled by default in PeerDB Cloud. It is enabled in PeerDB OSS and PeerDB Enterprise.

Request Fields

id
number
required

Describe a script by its ID. If the ID is -1, it returns all scripts.

Response Fields

scripts
array

An array of scripts.