Save the registration form (owner)
PUT
/v1/workspace/texting/registration
const url = 'https://api.vocapable.com/v1/workspace/texting/registration';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"brand_type":"standard","business":{"legal_name":"example","business_type":"Corporation","industry":"example","ein":"example","website_url":"example","company_type":"private","stock_exchange":"example","stock_ticker":"example","contact_first_name":"example","contact_last_name":"example","contact_email":"example","contact_phone_e164":"example","contact_title":"example","contact_job_position":"Director","otp_mobile_e164":"example","address":{"street":"example","street_secondary":"example","city":"example","region":"example","postal_code":"example","iso_country":"US"}},"campaign":{"use_case":"example","description":"example","message_flow":"example","samples":["example"],"opt_in_message":"example","opt_out_message":"example","help_message":"example","has_embedded_links":true,"has_embedded_phone":true,"privacy_policy_url":"example","terms_and_conditions_url":"example"},"phone_number_ids":["example"],"expected_revision":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.vocapable.com/v1/workspace/texting/registration \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "brand_type": "standard", "business": { "legal_name": "example", "business_type": "Corporation", "industry": "example", "ein": "example", "website_url": "example", "company_type": "private", "stock_exchange": "example", "stock_ticker": "example", "contact_first_name": "example", "contact_last_name": "example", "contact_email": "example", "contact_phone_e164": "example", "contact_title": "example", "contact_job_position": "Director", "otp_mobile_e164": "example", "address": { "street": "example", "street_secondary": "example", "city": "example", "region": "example", "postal_code": "example", "iso_country": "US" } }, "campaign": { "use_case": "example", "description": "example", "message_flow": "example", "samples": [ "example" ], "opt_in_message": "example", "opt_out_message": "example", "help_message": "example", "has_embedded_links": true, "has_embedded_phone": true, "privacy_policy_url": "example", "terms_and_conditions_url": "example" }, "phone_number_ids": [ "example" ], "expected_revision": 1 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceA2pDraft
Create or replace the draft; refused once submitted.
object
brand_type
required
Brand Type
string
business
required
WorkspaceA2pBusiness
What Trust Hub needs about the business and the person authorized to register it.
EIN brands (standard / low-volume standard) fill the business fields; a sole proprietor (no EIN) fills only their name, email, address and the mobile number that receives the one-time verification text.
object
legal_name
required
Legal Name
string
contact_first_name
required
Contact First Name
string
contact_last_name
required
Contact Last Name
string
contact_email
required
Contact Email
string
contact_phone_e164
required
Contact Phone E164
string
campaign
required
WorkspaceA2pCampaign
object
use_case
required
Use Case
string
description
required
Description
string
message_flow
required
Message Flow
string
samples
required
Samples
Array<string>
has_embedded_links
required
Has Embedded Links
boolean
has_embedded_phone
required
Has Embedded Phone
boolean
privacy_policy_url
required
Privacy Policy Url
string
terms_and_conditions_url
required
Terms And Conditions Url
string
phone_number_ids
required
Phone Number Ids
Array<string>
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceA2pRegistration
Where business texting registration stands, in the owner’s words.
object
stage
required
Stage
string
headline
required
Headline
string
failure_reasons
required
Failure Reasons
Array<string>
sending_enabled
required
Sending Enabled
boolean
manual_override
required
Manual Override
boolean
business
required
Business
object
key
additional properties
any
campaign
required
Campaign
object
key
additional properties
any
numbers
required
Numbers
Array<object>
WorkspaceA2pNumberobject
phone_number_id
required
Phone Number Id
string
phone_e164
required
Phone E164
string
registration
required
Registration
string
selected
required
Selected
boolean
use_cases
required
Use Cases
Array<object>
WorkspaceA2pUseCaseobject
code
required
Code
string
label
required
Label
string
fees
required
Fees
Array<object>
WorkspaceA2pFeeobject
item
required
Item
string
amount
required
Amount
string
fees_source
required
Fees Source
string
fees_note
required
Fees Note
string
can_edit
required
Can Edit
boolean
can_submit
required
Can Submit
boolean
can_resend_otp
required
Can Resend Otp
boolean
Example
{ "stage": "draft", "brand_type": "standard", "numbers": [ { "registration": "registry" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}