Headers
-
Unique identifier of an integration
Minimum length is
24
, maximum length is24
. Format should match the following pattern:IN[A-Za-z0-9_\-]+
.
POST
/request-validations
curl \
--request POST '/api/v1/request-validations' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "x-integration-id: INx3zt0ygAcQGBAQEBAQEBAQ" \
--data '{"route":{"method":"GET","host":"api.example.com","port":8080,"path":"/api/users/{id}"},"requestSchema":{"headerSchemaID":"SCx3zt0ygAcQGBAQEBAQEBAQ","querySchemaID":"SCx3zt0ygAcQGBAQEBAQEBAQ","bodySchemaID":"SCx3zt0ygAcQGBAQEBAQEBAQ"},"responseSchema":{"headerSchemaID":"SCx3zt0ygAcQGBAQEBAQEBAQ","bodySchemaID":"SCx3zt0ygAcQGBAQEBAQEBAQ"}}'
Request examples
# Headers
x-integration-id: INx3zt0ygAcQGBAQEBAQEBAQ
# Payload
{
"route": {
"method": "GET",
"host": "api.example.com",
"port": 8080,
"path": "/api/users/{id}"
},
"requestSchema": {
"headerSchemaID": "SCx3zt0ygAcQGBAQEBAQEBAQ",
"querySchemaID": "SCx3zt0ygAcQGBAQEBAQEBAQ",
"bodySchemaID": "SCx3zt0ygAcQGBAQEBAQEBAQ"
},
"responseSchema": {
"headerSchemaID": "SCx3zt0ygAcQGBAQEBAQEBAQ",
"bodySchemaID": "SCx3zt0ygAcQGBAQEBAQEBAQ"
}
}
Response examples (200)
{
"routeKey": "RKyx_d19M6zrA"
}
Response examples (201)
{
"routeKey": "RKyx_d19M6zrA"
}
Response examples (400)
{
"code": "string",
"message": "string"
}
Response examples (401)
{
"code": "string",
"message": "string"
}
Response examples (429)
{
"code": "string",
"message": "string"
}
Response examples (500)
{
"code": "string",
"message": "string"
}