The Send OTP endpoint sends a 6-digit verification code to the provided email address. If no OutX account exists for that email, one will be created automatically when the OTP is verified.
This endpoint requires no authentication — it is the entry point for the auth flow.
Endpoint
POST https://api.outx.ai/linkedin-agent/auth-send-otp
Request Body
The email address to send the OTP to
Full name of the user (used when creating a new account)
Response
{
"success": true,
"email": "john@example.com"
}
curl -X POST "https://api.outx.ai/linkedin-agent/auth-send-otp" \
-H "Content-Type: application/json" \
-d '{
"email": "john@example.com",
"full_name": "John Doe"
}'
const response = await fetch(
"https://api.outx.ai/linkedin-agent/auth-send-otp",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
email: "john@example.com",
full_name: "John Doe",
}),
}
);
const data = await response.json();
console.log(data); // { success: true, email: "john@example.com" }
import requests
response = requests.post(
"https://api.outx.ai/linkedin-agent/auth-send-otp",
json={
"email": "john@example.com",
"full_name": "John Doe",
},
)
print(response.json())
Errors
| Status | Error | Description |
|---|
400 | Missing or invalid 'email' | The email field is missing or not a valid string |
Next Step
Check your email for the 6-digit OTP, then use Verify OTP to complete authentication and receive your API key.