Authentication
Create a new authentication profile
API Documentation
Applications
Authentication
Security
Abuse Prevention
Routing
Authentication
Create a new authentication profile
POST
/
{account_id}
/
authentication
/
create
curl --request POST \
--url https://api.typeauth.com/{account_id}/authentication/create \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"ratelimit": {
"limit": 123,
"timeWindow": 123
},
"refill": {
"amount": 123,
"interval": "dalily"
},
"remaining": 123,
"keyType": "jwt",
"jwt_id": "<string>",
"expires": 123,
"byteLength": 123,
"tags": [
"<string>"
]
}'
{
"success": true,
"message": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"domain": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"originHostname": "<string>",
"detailResponse": true,
"auth_id": "<string>",
"llmcache_id": "<string>",
"abuse_id": "<string>",
"tags": [
"<string>"
]
}
]
}
Path Parameters
Body
application/json
Name of the authentication profile
Available options:
jwt
, token
Tags of the application
Response
201 - application/json
Authentication profile created successfully
Was this page helpful?
curl --request POST \
--url https://api.typeauth.com/{account_id}/authentication/create \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"ratelimit": {
"limit": 123,
"timeWindow": 123
},
"refill": {
"amount": 123,
"interval": "dalily"
},
"remaining": 123,
"keyType": "jwt",
"jwt_id": "<string>",
"expires": 123,
"byteLength": 123,
"tags": [
"<string>"
]
}'
{
"success": true,
"message": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"domain": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"originHostname": "<string>",
"detailResponse": true,
"auth_id": "<string>",
"llmcache_id": "<string>",
"abuse_id": "<string>",
"tags": [
"<string>"
]
}
]
}