Skip to main content
GET
/
applications
/
{applicationId}
/
models
Get all models for an application
curl --request GET \
  --url https://local.withsutro.com/applications/{applicationId}/models \
  --header 'Authorization: Bearer <token>' \
  --header 'x-sutro-api-client: <api-key>'
{
  "models": [
    {
      "id": "<string>",
      "name": "<string>",
      "fields": [
        {
          "id": "<string>",
          "name": "<string>",
          "relationshipOwner": true,
          "min": 123,
          "max": 123,
          "to": "<string>",
          "accessControl": {
            "rules": [
              {
                "access": "allow",
                "criteria": "<string>"
              }
            ],
            "defaultAccess": "allow"
          },
          "computed": "<string>",
          "defaultValue": "<unknown>",
          "enum": [
            "<string>"
          ]
        }
      ],
      "accessControl": {
        "rules": [
          {
            "access": "allow",
            "criteria": "<string>"
          }
        ],
        "defaultAccess": "allow"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Builder authentication and authorization

x-sutro-api-client
string
header
required

A unique identifier for the API Client making a request

Path Parameters

applicationId
string<uuid>
required

Response

List of models for the application

models
object[]