Skip to main content
POST
Create Target

Authorizations

Authorization
string
header
required

API key generated from the MindFort dashboard. Pass as Authorization: Bearer <your-api-key>.

Body

application/json
name
string
required
Required string length: 1 - 255
Pattern: \S
target_type
enum<string>
required
Available options:
web_app,
api,
network
description
string | null
Maximum string length: 4000
web_domain
string<uri> | null

HTTP(S) target URL required for web_app and api. URL-embedded credentials are rejected; use target credentials instead. Stored canonically, so a host-only URL may be returned with a trailing slash.

Required string length: 1 - 2083
Pattern: ^[Hh][Tt][Tt][Pp][Ss]?://
ip_address
string<ip-address> | null
api_auth_instructions
string | null

API authentication validation instructions. Required when an API target is created with one or more credentials.

Maximum string length: 10000
credentials
object[]

Response

Successful response

id
string<uuid>
required
name
string
required
target_type
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
web_domain
string | null
ip_address
string | null
last_assessment_time
string<date-time> | null
api_auth_instructions
string | null

Target-level API authentication validation instructions.

Maximum string length: 10000