Gatana Documentation
RoutesProfiles

/profiles

POST
/profiles
AuthorizationBearer <token>

In: header

Request Body

application/json

name*string
Length1 <= length <= 100
description*string
Lengthlength <= 500
isOpenToAllUsers*boolean
isRestrictive*boolean

Response Body

application/json

curl -X POST "https://YOUR_ORG_ID.gatana.ai/api/v1/profiles" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "description": "string",    "isOpenToAllUsers": true,    "isRestrictive": true  }'
{
  "profile": {
    "tenantId": "string",
    "id": "string",
    "createdBy": 0,
    "name": "string",
    "description": "string",
    "isOpenToAllUsers": true,
    "isRestrictive": true,
    "createdAt": "string",
    "updatedAt": "string",
    "servers": [
      {
        "name": "string",
        "slug": "string",
        "authorization": {
          "method": "none",
          "credentialsScope": "server",
          "apikeys": [
            "string"
          ]
        },
        "credentialsNumKeys": 0,
        "credentialScope": "server",
        "credentials": {
          "id": "string",
          "tenantId": "string",
          "scope": "server",
          "userId": 0,
          "profileId": "string",
          "lastUsedAt": "string",
          "authorizedAt": "string",
          "type": "oauth",
          "createdAt": "string",
          "updatedAt": "string",
          "apikeysPresent": [
            "string"
          ],
          "hasAccessToken": true,
          "accessTokenExpiry": "string",
          "hasRefreshToken": true,
          "subject": "string",
          "email": "string"
        }
      }
    ]
  }
}