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

account_id
string
required

Body

application/json
name
string
endpoints
object[]