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

account_id
string
required

Body

application/json
name
string

Name of the authentication profile

ratelimit
object | null
refill
object | null
remaining
integer | null
keyType
enum<string>
Available options:
jwt,
token
jwt_id
string | null
expires
integer | null
byteLength
integer | null
tags
string[]

Tags of the application

Response

201 - application/json
Authentication profile created successfully
success
boolean
message
string
data
object[]