Create Target Credential
Store a credential on a target. Email MFA requires pending_email_id; username and password are optional and should be supplied only when the target requests primary credentials. Before adding an api_key credential, the API target must already have non-empty api_auth_instructions; update the target with the validation route, HTTP method, request shape, and successful response first.
Autorizaciones
API key generated from the MindFort dashboard. Pass as Authorization: Bearer <your-api-key>.
Parámetros de ruta
Cuerpo
1 - 255application_login, magic_link, email_mfa, authenticator_2fa, sms_mfa, sms_login, api_key Username for login credential types. Optional for email_mfa.
255Password for login credential types. Optional for email_mfa.
1 - 255user, admin, viewer, editor, custom 400010000Instructions specific to this credential, used during authentication. Plain text only; HTML tags and unsupported control characters are rejected.
100001 - 255^[A-Za-z]{2}$Respuesta
Credential stored
Instructions specific to this credential, used during authentication. Plain text only; HTML tags and unsupported control characters are rejected.
10000System-provisioned phone number for SMS credentials; not a writable authenticator input.