Create Credential
Credentials & Vault
Create Credential
Register a named credential that points at a secret in your vault. The credential is referenced by ID from the authenticate task action at run time.
POST
Create Credential
Overview
Registers a named credential that theauthenticate 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
Human-readable name. 1-100 characters.
UUID of the vault integration that will be used to read the secret. Created via
POST /vault-integrations.Path inside your vault. For HashiCorp KV v2 use the logical path (for example
secret/data/login-alice).Maps the field names stored inside the vault secret to the roles the authenticate action understands.
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)
Credential ID (UUID). Reference this from the
authenticate task action.The name you provided.
The vault integration this credential reads from.
The vault path this credential reads from.
The stored field-name mapping, echoed back.
The stored allow-list of hostnames, echoed back.
ISO 8601 timestamp.
ISO 8601 timestamp.
Error Responses
| Status | Description |
|---|---|
400 | Invalid body, unknown vaultIntegrationId, or disallowed domain pattern (for example *). |
401 | Unauthorized — invalid or missing API key. |