This commit is contained in:
parent
8726c931fa
commit
8c46d091ff
49 changed files with 1607 additions and 712 deletions
|
|
@ -18,7 +18,7 @@ export function UrmiOtpDocsPage() {
|
|||
.finally(() => setLoading(false))
|
||||
}, [projectId])
|
||||
|
||||
if (loading) return <div className="auth-loading">Loading API documentation…</div>
|
||||
if (loading) return <div className="auth-loading">Loading sending instructions…</div>
|
||||
if (!docs) return <section className="panel"><p className="auth-error">{error}</p></section>
|
||||
|
||||
const requestExample = JSON.stringify(docs.api.example, null, 2)
|
||||
|
|
@ -35,8 +35,8 @@ export function UrmiOtpDocsPage() {
|
|||
<ArrowLeft size={14} /> Back to projects
|
||||
</button>
|
||||
<div className="account-heading">
|
||||
<span className="eyebrow">UrmiOTP · {docs.project.project_name}</span>
|
||||
<h1>API documentation</h1>
|
||||
<span className="eyebrow">Verification codes · {docs.project.project_name}</span>
|
||||
<h1>How to send a code</h1>
|
||||
<p className="otp-message-label">
|
||||
Message label: <strong>{docs.project.message_label}</strong>
|
||||
<span> — your product identification in each message. URMI branding remains unchanged.</span>
|
||||
|
|
@ -46,15 +46,14 @@ export function UrmiOtpDocsPage() {
|
|||
|
||||
<section className="panel otp-api-overview">
|
||||
<div className="panel-heading">
|
||||
<div><h2>Generate verification OTP</h2><p>{docs.api.summary}</p></div>
|
||||
<div><h2>Send a verification code</h2><p>{docs.api.summary}</p></div>
|
||||
<span className="explorer-method">{docs.api.method}</span>
|
||||
</div>
|
||||
<div className="explorer-field-row"><span>Endpoint</span><code>{docs.api.path}</code></div>
|
||||
<div className="explorer-field-row"><span>Address</span><code>{docs.api.path}</code></div>
|
||||
<div className="otp-api-notice">
|
||||
<Code2 size={16} />
|
||||
<span>
|
||||
SMS delivery uses the DLT-approved URMI OTP template. <code>template_type</code> is for
|
||||
categorization; the sent text matches <code>message_preview</code> in the API response.
|
||||
Customers receive the approved verification text. The type you choose only groups the request. The message they see matches the preview.
|
||||
</span>
|
||||
</div>
|
||||
<div className="otp-parameter-list">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue