Routing
Create a new routing profile
API Documentation
Applications
Authentication
Security
Abuse Prevention
Routing
Routing
Create a new routing profile
POST
/
{account_id}
/
routing
/
create
curl --request POST \
--url https://api.typeauth.com/{account_id}/routing/create \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"endpoints": [
{
"public_method": "<string>",
"public_path": "<string>",
"public_headers": [
"<string>"
],
"typeauth_response": "<string>",
"typeauth_response_code": 123,
"typeauth_response_body": "<string>",
"typeauth_response_content_type": "<string>",
"target_path": "<string>",
"target_hostname": "<string>",
"target_method": "<string>"
}
]
}'
Path Parameters
Body
application/json
Was this page helpful?
curl --request POST \
--url https://api.typeauth.com/{account_id}/routing/create \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"endpoints": [
{
"public_method": "<string>",
"public_path": "<string>",
"public_headers": [
"<string>"
],
"typeauth_response": "<string>",
"typeauth_response_code": 123,
"typeauth_response_body": "<string>",
"typeauth_response_content_type": "<string>",
"target_path": "<string>",
"target_hostname": "<string>",
"target_method": "<string>"
}
]
}'