curl --request POST \
--url https://platform.trylath.com/sms/registration/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"useCase": "<string>",
"sampleMessages": [
"<string>"
],
"taxId": "<string>",
"website": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
legalName: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
address: '<string>',
useCase: '<string>',
sampleMessages: ['<string>'],
taxId: '<string>',
website: '<string>'
})
};
fetch('https://platform.trylath.com/sms/registration/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/sms/registration/submit"
payload = {
"legalName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"useCase": "<string>",
"sampleMessages": ["<string>"],
"taxId": "<string>",
"website": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/sms/registration/submit"
payload := strings.NewReader("{\n \"legalName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"useCase\": \"<string>\",\n \"sampleMessages\": [\n \"<string>\"\n ],\n \"taxId\": \"<string>\",\n \"website\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"registration": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brandType": "standard",
"status": "draft",
"blocker": "<string>",
"detail": "<unknown>",
"submittedAt": "2023-11-07T05:31:56Z",
"lastCheckedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}sms.registration.submit
Records this project’s carrier registration details and marks it ‘registering’, or replaces them when the carrier asked for changes. It does not file anything with the carrier: sending the registration to the carrier is not built yet, and the tax id is checked for presence and then discarded, neither stored nor sent. On a deployment with a carrier configured, a worker checks it roughly every fifteen minutes and moves the status to ‘active’, ‘action_needed’ or ‘failed’ once a brand filed with the carrier can be matched to this registration; until then it stays ‘registering’. US carriers refuse application-to-person traffic from an unregistered sender, so SMS cannot send until this reaches ‘active’. A sole_proprietor brand takes no tax id; a standard brand requires one. Resubmitting replaces the previous details rather than adding a second registration.
curl --request POST \
--url https://platform.trylath.com/sms/registration/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legalName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"useCase": "<string>",
"sampleMessages": [
"<string>"
],
"taxId": "<string>",
"website": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
legalName: '<string>',
email: 'jsmith@example.com',
phone: '<string>',
address: '<string>',
useCase: '<string>',
sampleMessages: ['<string>'],
taxId: '<string>',
website: '<string>'
})
};
fetch('https://platform.trylath.com/sms/registration/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.trylath.com/sms/registration/submit"
payload = {
"legalName": "<string>",
"email": "jsmith@example.com",
"phone": "<string>",
"address": "<string>",
"useCase": "<string>",
"sampleMessages": ["<string>"],
"taxId": "<string>",
"website": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.trylath.com/sms/registration/submit"
payload := strings.NewReader("{\n \"legalName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"useCase\": \"<string>\",\n \"sampleMessages\": [\n \"<string>\"\n ],\n \"taxId\": \"<string>\",\n \"website\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"activityId": "<string>",
"result": {
"registration": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brandType": "standard",
"status": "draft",
"blocker": "<string>",
"detail": "<unknown>",
"submittedAt": "2023-11-07T05:31:56Z",
"lastCheckedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}Authorizations
A Lath API key: lath_live_… or lath_test_… on a server, lath_live_pk… or lath_test_pk… in a browser.
Headers
Replays the stored response for the same key and input; refuses different input.
Body
standard, sole_proprietor 1 - 200^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$5 - 301 - 30020 - 20001 - 5 elements1 - 5001 - 40Was this page helpful?

