Cast AI Service Accounts API

The ServiceAccountsAPI API from Cast AI — 6 operation(s) for serviceaccountsapi.

Operations 12

POST /v1/organizations/{organizationId}/service-accounts CreateServiceAccount creates a service account for the given organization #
DELETE /v1/organizations/{organizationId}/service-accounts DeleteServiceAccounts deletes a list of service accounts for the given… #
GET /v1/organizations/{organizationId}/service-accounts ListServiceAccounts lists all service accounts for organization in context #
GET /v1/organizations/{organizationId}/service-accounts/keys ListOrganizationServiceAccountKeys lists all service account keys for the given… #
DELETE /v1/organizations/{organizationId}/service-accounts/{serviceAccountId} DeleteServiceAccount deletes a service account for the given organization #
GET /v1/organizations/{organizationId}/service-accounts/{serviceAccountId} GetServiceAccount gets a service account for the given organization #
PATCH /v1/organizations/{organizationId}/service-accounts/{serviceAccountId} UpdateServiceAccount updates a service account for the given organization #
POST /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys CreateServiceAccountKey creates a service account key for the given organization #
GET /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys ListServiceAccountKeys lists all keys for a service account #
PATCH /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys/{key.id} UpdateServiceAccountKey updates a service account key for the given organization #
DELETE /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys/{keyId} DeleteServiceAccountKey deletes a service account key for the given organization #
GET /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys/{keyId} GetServiceAccountKey gets a service account key for the given organization #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kimchi:kimchi-serviceaccountsapi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kimchi-serviceaccountsapi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CAST.AI API documentation Service Accounts API
  version: 1.0.0
  description: '### Feature maturity indicators (may appear on resources, operations and request/response fields)

    - **(BETA)** - new or experimental features, subject to change

    - **(Deprecated)** - outdated or replaced features (a reason and removal date will be provided in the description)'
servers:
- url: https://api.cast.ai/
  description: US endpoint
- url: https://api.eu.cast.ai/
  description: EU endpoint
security:
- BearerAuth: []
- ApiKeyAuth: []
tags:
- name: ServiceAccountsAPI
paths:
  /v1/organizations/{organizationId}/service-accounts:
    post:
      operationId: ServiceAccountsAPI_CreateServiceAccount
      parameters:
      - in: path
        name: organizationId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.CreateServiceAccountRequest.ServiceAccount'
        description: ServiceAccount is the service account to be created.
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.CreateServiceAccountResponse'
          description: A successful response.
      summary: CreateServiceAccount creates a service account for the given organization
      tags:
      - ServiceAccountsAPI
      x-codegen-request-body-name: serviceAccount
    delete:
      operationId: ServiceAccountsAPI_DeleteServiceAccounts
      parameters:
      - description: OrganizationID is the id of the organization to list service accounts for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountIDs is the list of service account ids to be deleted.
        explode: true
        in: query
        name: serviceAccountIds
        required: true
        schema:
          items:
            type: string
          type: array
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.DeleteServiceAccountsResponse'
          description: A successful response.
        '204':
          content:
            application/json:
              schema:
                type: object
          description: Service accounts have been deleted.
      summary: DeleteServiceAccounts deletes a list of service accounts for the given…
      tags:
      - ServiceAccountsAPI
    get:
      operationId: ServiceAccountsAPI_ListServiceAccounts
      parameters:
      - description: OrganizationID is the id of the organization to list service accounts for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - in: query
        name: page.limit
        schema:
          format: uint64
          type: string
      - description: 'Cursor that defines token indicating where to start the next page.

          Empty value indicates to start from beginning of the dataset.'
        in: query
        name: page.cursor
        schema:
          type: string
      - description: Service account name filter.
        in: query
        name: serviceAccountName
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ListServiceAccountsResponse'
          description: A successful response.
      summary: ListServiceAccounts lists all service accounts for organization in context
      tags:
      - ServiceAccountsAPI
  /v1/organizations/{organizationId}/service-accounts/keys:
    get:
      operationId: ServiceAccountsAPI_ListOrganizationServiceAccountKeys
      parameters:
      - description: OrganizationID is the id of the organization to list service account keys for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - in: query
        name: page.limit
        schema:
          format: uint64
          type: string
      - description: 'Cursor that defines token indicating where to start the next page.

          Empty value indicates to start from beginning of the dataset.'
        in: query
        name: page.cursor
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse'
          description: A successful response.
      summary: ListOrganizationServiceAccountKeys lists all service account keys for the given…
      tags:
      - ServiceAccountsAPI
  /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}:
    delete:
      operationId: ServiceAccountsAPI_DeleteServiceAccount
      parameters:
      - description: OrganizationID is the id of the organization to list service accounts for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ID is the id of the service account to be deleted.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.DeleteServiceAccountResponse'
          description: A successful response.
        '204':
          content:
            application/json:
              schema:
                type: object
          description: Service account has been deleted.
      summary: DeleteServiceAccount deletes a service account for the given organization
      tags:
      - ServiceAccountsAPI
    get:
      operationId: ServiceAccountsAPI_GetServiceAccount
      parameters:
      - description: OrganizationID is the id of the organization to list service accounts for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ID is the id of the service account to be fetched.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.GetServiceAccountResponse'
          description: A successful response.
      summary: GetServiceAccount gets a service account for the given organization
      tags:
      - ServiceAccountsAPI
    patch:
      operationId: ServiceAccountsAPI_UpdateServiceAccount
      parameters:
      - description: OrganizationID is the id of the organization to update the service account for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the id of the service account to be updated.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceAccountsAPI_UpdateServiceAccount_request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.UpdateServiceAccountResponse'
          description: A successful response.
      summary: UpdateServiceAccount updates a service account for the given organization
      tags:
      - ServiceAccountsAPI
      x-codegen-request-body-name: body
  /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys:
    post:
      operationId: ServiceAccountsAPI_CreateServiceAccountKey
      parameters:
      - description: OrganizationID is the organization ID.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the service account ID.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceAccountsAPI_CreateServiceAccountKey_request'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.CreateServiceAccountKeyResponse'
          description: A successful response.
      summary: CreateServiceAccountKey creates a service account key for the given organization
      tags:
      - ServiceAccountsAPI
      x-codegen-request-body-name: body
    get:
      operationId: ServiceAccountsAPI_ListServiceAccountKeys
      parameters:
      - description: OrganizationID is the id of the organization.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the id of the service account.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      - in: query
        name: page.limit
        schema:
          format: uint64
          type: string
      - description: 'Cursor that defines token indicating where to start the next page.

          Empty value indicates to start from beginning of the dataset.'
        in: query
        name: page.cursor
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ListServiceAccountKeysResponse'
          description: A successful response.
      summary: ListServiceAccountKeys lists all keys for a service account
      tags:
      - ServiceAccountsAPI
  /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys/{key.id}:
    patch:
      operationId: ServiceAccountsAPI_UpdateServiceAccountKey
      parameters:
      - description: OrganizationID is the organization ID.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the service account ID.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      - in: path
        name: key.id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Key_is_the_service_account_key_to_update_'
        description: Key is the service account key to update.
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.UpdateServiceAccountKeyResponse'
          description: A successful response.
      summary: UpdateServiceAccountKey updates a service account key for the given organization
      tags:
      - ServiceAccountsAPI
      x-codegen-request-body-name: key
  /v1/organizations/{organizationId}/service-accounts/{serviceAccountId}/keys/{keyId}:
    delete:
      operationId: ServiceAccountsAPI_DeleteServiceAccountKey
      parameters:
      - description: OrganizationID is the organization ID.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the service account ID.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      - description: KeyID is the key ID.
        in: path
        name: keyId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.DeleteServiceAccountKeyResponse'
          description: A successful response.
        '204':
          content:
            application/json:
              schema:
                type: object
          description: Service account key has been deleted.
      summary: DeleteServiceAccountKey deletes a service account key for the given organization
      tags:
      - ServiceAccountsAPI
    get:
      operationId: ServiceAccountsAPI_GetServiceAccountKey
      parameters:
      - description: OrganizationID is the id of the organization to get a service account key for.
        in: path
        name: organizationId
        required: true
        schema:
          type: string
      - description: ServiceAccountID is the id of the service account to get a key for.
        in: path
        name: serviceAccountId
        required: true
        schema:
          type: string
      - description: KeyID is the id of the key to be fetched.
        in: path
        name: keyId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.GetServiceAccountKeyResponse'
          description: A successful response.
      summary: GetServiceAccountKey gets a service account key for the given organization
      tags:
      - ServiceAccountsAPI
components:
  schemas:
    castai.serviceaccounts.v1beta1.DeleteServiceAccountResponse:
      description: DeleteServiceAccountResponse is the response for deleting a service account.
      type: object
    ServiceAccountsAPI_CreateServiceAccountKey_request:
      description: CreateServiceAccountKeyRequest is the request for creating a service account key.
      properties:
        key:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.CreateServiceAccountKeyRequest.Key'
      required:
      - key
      type: object
    castai.serviceaccounts.v1beta1.CreateServiceAccountKeyResponse:
      description: CreateServiceAccountKeyResponse is the response for creating a service account key.
      properties:
        id:
          description: ID is the unique identifier of the key.
          readOnly: true
          type: string
        name:
          description: Name is the name of the key.
          readOnly: true
          type: string
        token:
          description: Token is the full secret key.
          readOnly: true
          type: string
        createdAt:
          description: CreatedAt is the creation time of the key.
          format: date-time
          readOnly: true
          type: string
        expiresAt:
          description: ExpiresAt is the expiration time of the key.
          format: date-time
          readOnly: true
          type: string
        active:
          description: Active determines if the key is active.
          readOnly: true
          type: boolean
      type: object
    castai.serviceaccounts.v1beta1.UpdateServiceAccountKeyResponse:
      description: UpdateServiceAccountKeyResponse is the response for updating a service account key.
      properties:
        id:
          description: ID is the unique identifier of the key.
          readOnly: true
          type: string
        name:
          description: Name is the name of the key.
          readOnly: true
          type: string
        prefix:
          description: Prefix is the prefix of the key.
          readOnly: true
          type: string
        lastUsedAt:
          description: LastUsedAt is the last time the key was used.
          format: date-time
          readOnly: true
          type: string
        expiresAt:
          description: ExpiresAt is the expiration time of the key.
          format: date-time
          readOnly: true
          type: string
        active:
          description: Active determines if the key is active.
          readOnly: true
          type: boolean
      type: object
    castai.serviceaccounts.v1beta1.CreateServiceAccountResponse:
      description: CreateServiceAccountResponse is the response for creating a service account.
      properties:
        id:
          readOnly: true
          type: string
        name:
          readOnly: true
          type: string
        email:
          readOnly: true
          type: string
        description:
          readOnly: true
          type: string
        author:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.CreateServiceAccountResponse.Author'
        createdAt:
          format: date-time
          readOnly: true
          type: string
      type: object
    castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse:
      description: ListOrganizationServiceAccountKeysResponse is the response for listing all service account keys for an organization.
      properties:
        keys:
          description: Keys is the list of service account keys.
          items:
            $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse.Key'
          readOnly: true
          type: array
        nextPage:
          $ref: '#/components/schemas/castai.pagination.v1beta1.Page'
        totalCount:
          description: TotalCount is the total number of service account keys in the dataset.
          format: uint64
          readOnly: true
          type: string
      required:
      - keys
      - nextPage
      - totalCount
      type: object
    castai.serviceaccounts.v1beta1.ListServiceAccountKeysResponse:
      description: ListServiceAccountKeysResponse is the response for listing service account keys.
      properties:
        keys:
          description: Keys is the list of service account keys.
          items:
            $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Key'
          readOnly: true
          type: array
        nextPage:
          $ref: '#/components/schemas/castai.pagination.v1beta1.Page'
        totalCount:
          description: TotalCount is the total number of keys in the dataset.
          format: uint64
          readOnly: true
          type: string
      required:
      - nextPage
      - totalCount
      type: object
    castai.serviceaccounts.v1beta1.CreateServiceAccountKeyRequest.Key:
      description: Key is the key to create.
      properties:
        name:
          description: Name is the name of the service account key.
          type: string
        expiresAt:
          description: 'ExpiresAt is the expiration time of the key.

            A null value means that the key will never expire.'
          format: date-time
          type: string
        active:
          description: Active is the active state of the key. If not provided, the default is true.
          type: boolean
      required:
      - name
      type: object
    castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse.ServiceAccount:
      description: ServiceAccount is a summary of the parent service account for a key.
      properties:
        id:
          description: ID is the unique identifier of the service account.
          readOnly: true
          type: string
        name:
          description: Name is the name of the service account.
          readOnly: true
          type: string
        createdAt:
          description: CreatedAt is the creation time of the service account.
          format: date-time
          readOnly: true
          type: string
        email:
          description: Email is the email of the service account.
          readOnly: true
          type: string
        description:
          description: Description is the description of the service account.
          readOnly: true
          type: string
        author:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Author'
        managedBy:
          description: 'ManagedBy is the method used to create the service account, eg.: console, terraform.'
          readOnly: true
          type: string
      type: object
    ServiceAccountsAPI_UpdateServiceAccount_request:
      description: UpdateServiceAccountRequest is the request for updating a service account.
      properties:
        serviceAccount:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.UpdateServiceAccountRequest.ServiceAccount'
      required:
      - serviceAccount
      type: object
    castai.serviceaccounts.v1beta1.UpdateServiceAccountResponse:
      description: UpdateServiceAccountResponse is the response for updating a service account.
      properties:
        serviceAccount:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount'
      required:
      - serviceAccount
      type: object
    castai.pagination.v1beta1.Page:
      description: Page defines how many and which fields should be returned.
      properties:
        limit:
          format: uint64
          type: string
        cursor:
          description: 'Cursor that defines token indicating where to start the next page.

            Empty value indicates to start from beginning of the dataset.'
          type: string
      type: object
    castai.serviceaccounts.v1beta1.DeleteServiceAccountKeyResponse:
      description: DeleteServiceAccountKeyResponse is the response for deleting a service account key.
      type: object
    castai.serviceaccounts.v1beta1.CreateServiceAccountResponse.Author:
      description: Author is the author of the service account.
      properties:
        id:
          readOnly: true
          type: string
        email:
          readOnly: true
          type: string
      type: object
    castai.serviceaccounts.v1beta1.UpdateServiceAccountRequest.ServiceAccount:
      description: ServiceAccount is the service account to be updated.
      properties:
        name:
          type: string
        description:
          type: string
      required:
      - name
      type: object
    Key_is_the_service_account_key_to_update_:
      properties:
        active:
          type: boolean
      required:
      - active
      title: Key is the service account key to update.
      type: object
    castai.serviceaccounts.v1beta1.ServiceAccount.Author:
      description: Author is the author of the service account.
      properties:
        id:
          description: ID is the unique identifier of the author.
          readOnly: true
          type: string
        kind:
          description: Kind is the kind of the author.
          readOnly: true
          type: string
        email:
          description: Email is the email of the author.
          readOnly: true
          type: string
      type: object
    castai.serviceaccounts.v1beta1.CreateServiceAccountRequest.ServiceAccount:
      description: ServiceAccounts is the service account to be created.
      properties:
        name:
          description: Name is the name of the service account.
          type: string
        description:
          description: Description is the description of the role binding.
          type: string
      required:
      - name
      type: object
    castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse.Key:
      description: Key is a service account key with its parent service account context.
      properties:
        id:
          description: ID is the unique identifier of the key.
          readOnly: true
          type: string
        name:
          description: Name is the name of the key.
          readOnly: true
          type: string
        prefix:
          description: Prefix is the prefix of the key.
          readOnly: true
          type: string
        lastUsedAt:
          description: LastUsedAt is the last time the key was used.
          format: date-time
          readOnly: true
          type: string
        expiresAt:
          description: ExpiresAt is the expiration time of the key.
          format: date-time
          readOnly: true
          type: string
        active:
          description: Active determines if the key is active.
          readOnly: true
          type: boolean
        createdAt:
          description: CreatedAt is the creation time of the key.
          format: date-time
          readOnly: true
          type: string
        createdBy:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Author'
        serviceAccount:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ListOrganizationServiceAccountKeysResponse.ServiceAccount'
      type: object
    castai.serviceaccounts.v1beta1.DeleteServiceAccountsResponse:
      description: DeleteServiceAccountsResponse is the response for batch deleting service accounts.
      type: object
    castai.serviceaccounts.v1beta1.GetServiceAccountKeyResponse:
      description: GetServiceAccountKeyResponse is the response for getting a service account key.
      properties:
        key:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Key'
      required:
      - key
      type: object
    castai.serviceaccounts.v1beta1.ListServiceAccountsResponse:
      description: ListServiceAccountsResponse is the response for listing service accounts.
      properties:
        serviceAccounts:
          description: ServiceAccounts is the list of service accounts.
          items:
            $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount'
          readOnly: true
          type: array
        nextPage:
          $ref: '#/components/schemas/castai.pagination.v1beta1.Page'
        totalCount:
          description: TotalCount is the total number of service accounts in the dataset.
          format: uint64
          readOnly: true
          type: string
      required:
      - nextPage
      - serviceAccounts
      - totalCount
      type: object
    castai.serviceaccounts.v1beta1.GetServiceAccountResponse:
      description: GetServiceAccountResponse is the response for getting a service account.
      properties:
        serviceAccount:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount'
      required:
      - serviceAccount
      type: object
    castai.serviceaccounts.v1beta1.ServiceAccount:
      description: ServiceAccounts is the readable version of the service accounts.
      properties:
        id:
          description: ID is the unique identifier of the service account.
          readOnly: true
          type: string
        name:
          description: Name is the name of the service account.
          readOnly: true
          type: string
        email:
          description: Email is the email of the service account.
          readOnly: true
          type: string
        description:
          description: Description is the description of the role binding.
          readOnly: true
          type: string
        createdAt:
          description: CreatedAt is the timestamp when the service account was created.
          format: date-time
          readOnly: true
          type: string
        author:
          $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Author'
        keys:
          description: 'Deprecated: Use ListServiceAccountKeys endpoint instead. This field is kept for backward compatibility.'
          items:
            $ref: '#/components/schemas/castai.serviceaccounts.v1beta1.ServiceAccount.Key'
          readOnly: true
          type: array
          deprecated: true
        managedBy:
          description: 'Method used to create role binding, eg.: console, terraform.'
          readOnly: true
          type: string
        keysCount:
          description: Number of keys associated with the service account.
          format: int64
          readOnly: true
          type: integer
        organizationId:
          description: OrganizationID is the organization that owns the service account.
          readOnly: true
          type: string
      required:
      - managedBy
      - name
      type: object
    castai.serviceaccounts.v1beta1.ServiceAccount.Key:
      description: Key is the key for the service account.
      properties:
        id:
          description: ID is the unique identifier of the key.
          readOnly: true
          type: string
        name:
          description: Name is the name of the key.
          readOnly: true
          type: string
        prefix:
          description: Prefix is the prefix of the key.
          readOnly: true
          type: string
        lastUsedAt:
          description: LastUsedAt is the last time the key was used.
          format: date-time
          readOnly: true
          type: string
        expiresAt:
          description: ExpiresAt is the expiration time of the key.
          format: date-time
          readOnly: true
          type: string
        active:
          description: Active determines if the key is active.
          readOnly: true
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
x-provenance:
  method: searched
  source: https://docs.cast.ai/reference
  harvested: '2026-10-20'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.cast.ai/reference/aienablerapi_getcategorizedprompts.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionsapikeysrecommendationsreport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionsapikeyssavingsreport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionsapikeyusagereport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionscategoryrecommendationsreport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionscategoryusagereport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionsrecommendationsreport.md
  - https://docs.cast.ai/reference/aienablerapi_getchatcompletionsusagereport.md
  - https://docs.cast.ai/reference/aienablerapi_getmodels.md
  - https://docs.cast.ai/reference/aienablerapi_getroutingevents.md
  - https://docs.cast.ai/reference/aienablerapi_getsupportedproviders.md
  - https://docs.cast.ai/reference/aienablerapi_updatecategorizedprompt.md
  - https://docs.cast.ai/reference/aienablerplaygroundapi_createplaygroundchatcompletions.md
  - https://docs.cast.ai/reference/aienablerprovidersapi_deleteprovider.md
  - https://docs.cast.ai/reference/aienablerprovidersapi_getproviders.md
  - https://docs.cast.ai/reference/aienablerprovidersapi_prioritizeproviders.md
  - https://docs.cast.ai/reference/aienablerprovidersapi_registerproviders.md
  - https://docs.cast.ai/reference/aienablerprovidersapi_updateprovider.md
  - https://docs.cast.ai/reference/aienablersettingsapi_getsettings.md
  - https://docs.cast.ai/reference/aienablersettingsapi_upsertsettings.md
  - https://docs.cast.ai/reference/allocationgroupapi_createallocationgroup.md
  - https://docs.cast.ai/reference/allocationgroupapi_deleteallocationgroup.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroup.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroupcostsummaries.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroupcosttimedsummaries.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroupefficiencysummary.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgrouptotalcosttimed.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroupworkloadcosts.md
  - https://docs.cast.ai/reference/allocationgroupapi_getallocationgroupworkloadsefficiency.md
  - https://docs.cast.ai/reference/allocationgroupapi_getcostallocationgroupdatatransfersummary.md
  - https://docs.cast.ai/reference/allocationgroupapi_getcostallocationgroupdatatransferworkloads.md


# --- truncated at 32 KB (67 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/kimchi/refs/heads/main/openapi/kimchi-serviceaccountsapi-api-openapi.yml