Create a Provider
Creates a new Email or SMS Provider. For Category=Email, clientId is REQUIRED and is the from address: Casdoor sends every message from it, so a provider without it cannot send at all. It must be a valid email address already verified with the provider (a SendGrid Sender Identity). title and content are the verification-code email template; both default to a neutral built-in when omitted, and content must contain exactly one %s where the code is substituted.
Autorizaciones
Bearer authentication. Send Authorization: Bearer .
Cuerpo
Provider Input
ProviderInput payload
Type is the provider type. For Category=SMS the canonical Casdoor value is "Twilio SMS"; the legacy "Twilio" is still accepted and is normalised to the canonical form before the provider is stored.
ClientId is the FROM ADDRESS for Category=Email — required, and must be a valid email address verified with the provider (a SendGrid Sender Identity). Casdoor sends every email from this value; a provider without it cannot send at all. For Category=OAuth it is the OAuth client ID, and for Category=SMS the provider account identifier (a Twilio Account SID).
"noreply@example.com"
#nosec G117 -- auth service, field must be in JSON response
#nosec G117 -- auth service, field must be in JSON response
Content is the HTML body of the verification-code email for Category=Email. Casdoor substitutes the code into a single %s, so the body must contain exactly one. A neutral default body is applied when omitted.
Title is the subject line of the verification-code email for Category=Email. Defaults to "Here is your code" when omitted.
Respuesta
Created
ProviderResponse payload
"Email"
"2021-09-01T00:00:00.000Z"
"00000000-0000-0000-0000-000000000000"
"SMTP Corp"
Type is the provider type exactly as stored in Casdoor. SMS providers created before the canonical "Twilio SMS" was adopted are still stored as "Twilio", so both values can appear here.
"SendGrid"

