Skip to main content
POST
Create Credential

Overview

Registers a named credential that the authenticate task action can resolve at run time. The raw username/password never touch ScrapEngine — only the vault integration ID, the path inside your vault, and the field names to read are stored here. Each credential is scoped to one or more hostnames via allowedDomains; the authenticate action refuses to use a credential on any other host.

Body

string
required
Human-readable name. 1-100 characters.
string
required
UUID of the vault integration that will be used to read the secret. Created via POST /vault-integrations.
string
required
Path inside your vault. For HashiCorp KV v2 use the logical path (for example secret/data/login-alice).
object
required
Maps the field names stored inside the vault secret to the roles the authenticate action understands.
string[]
required
Hostnames this credential may be used on. At least one entry is required. Plain entries match the exact hostname; *.example.com matches subdomains but NOT the bare host. Wildcard-only (*) is rejected.

Example Request

Response

Success Response (201)

string
Credential ID (UUID). Reference this from the authenticate task action.
string
The name you provided.
string
The vault integration this credential reads from.
string
The vault path this credential reads from.
object
The stored field-name mapping, echoed back.
string[]
The stored allow-list of hostnames, echoed back.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.
Example Response:

Error Responses