Elastio AI Provider Credentials API

Tenant AI provider credentials

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /gateway/shared-services/v3/ai-provider-credentials List this tenant's AI provider credentials #
POST /gateway/shared-services/v3/ai-provider-credentials Store an AI provider credential #
DELETE /gateway/shared-services/v3/ai-provider-credentials/{id} Delete an AI provider credential #
GET /gateway/shared-services/v3/ai-provider-credentials/{id} Get one AI provider credential #
PATCH /gateway/shared-services/v3/ai-provider-credentials/{id} Update an AI provider credential #

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/elastio:elastio-ai-provider-credentials-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

elastio-ai-provider-credentials-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elastio AI Provider Credentials API
  description: 'The Elastio API gives you access to the Elastio platform from code. Hunt looks for ransomware, malware, and corrupted files in live, replicated, and backup data. Pursuit investigates copies of your systems for evidence of compromise. The API returns what both find, the incidents they raise, and the evidence that proves which recovery point is clean.


    ## Base URL


    Every request goes to your tenant:


    ```

    https://{tenant}.app.elastio.com

    ```


    `{tenant}` is the subdomain you use to sign in to the Elastio console.


    ## Authentication


    Send a personal access token (PAT) in the `Authorization` header:


    ```

    Authorization: Bearer

    ```


    Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`. Tokens can be scoped to the categories `inventory`, `security`, `protection`, `reporting`, `integrations` and `admin`, each with `read` or `write` access. See the authentication guide for details.


    ## Trying requests


    Select **Test Request** on any operation to send it from your browser. Enter your tenant in the server field and your token under **Authentication**. Requests run against your live tenant, so write operations change real data.'
  version: 1.0.0
  contact:
    name: Elastio Support
    email: support@elastio.com
    url: https://support.elastio.com
  license:
    name: Copyright © Elastio Software, Inc. All rights reserved.
    url: https://elastio.com
servers:
- url: https://{tenant}.app.elastio.com
  description: Your Elastio tenant
  variables:
    tenant:
      default: your-tenant
      description: The subdomain of your Elastio console URL
security:
- authorization: []
tags:
- name: AI Provider Credentials
  description: Tenant AI provider credentials
paths:
  /gateway/shared-services/v3/ai-provider-credentials:
    get:
      description: Returns every credential on the tenant, oldest first. A tenant with none gets an empty array, not 404. The credential itself is never included. Admin-only.
      operationId: listAIProviderCredentials
      parameters:
      - $ref: '#/components/parameters/AdminRole'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIProviderCredentialListResponse'
          description: The tenant's credentials
        '401':
          $ref: '#/components/responses/AIProviderUnauthorizedError'
        '403':
          $ref: '#/components/responses/AIProviderForbiddenError'
        '500':
          $ref: '#/components/responses/AIProviderInternalError'
      summary: List this tenant's AI provider credentials
      tags:
      - AI Provider Credentials
    post:
      description: Encrypts `credential` and stores it. The object fields depend on `provider`. The response is metadata only. Admin-only.
      operationId: createAIProviderCredential
      parameters:
      - $ref: '#/components/parameters/AdminRole'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAIProviderCredentialBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIProviderCredential'
          description: The stored credential's metadata
        '400':
          $ref: '#/components/responses/AIProviderBadRequestError'
        '401':
          $ref: '#/components/responses/AIProviderUnauthorizedError'
        '403':
          $ref: '#/components/responses/AIProviderForbiddenError'
        '409':
          $ref: '#/components/responses/AIProviderConflictError'
        '500':
          $ref: '#/components/responses/AIProviderInternalError'
      summary: Store an AI provider credential
      tags:
      - AI Provider Credentials
  /gateway/shared-services/v3/ai-provider-credentials/{id}:
    parameters:
    - $ref: '#/components/parameters/CredentialID'
    - $ref: '#/components/parameters/AdminRole'
    delete:
      description: Hard-deletes the credential. A missing id, or an id that belongs to another tenant, is 404. Admin-only.
      operationId: deleteAIProviderCredential
      responses:
        '204':
          description: Deleted
        '400':
          $ref: '#/components/responses/AIProviderBadRequestError'
        '401':
          $ref: '#/components/responses/AIProviderUnauthorizedError'
        '403':
          $ref: '#/components/responses/AIProviderForbiddenError'
        '404':
          $ref: '#/components/responses/AIProviderNotFoundError'
        '500':
          $ref: '#/components/responses/AIProviderInternalError'
      summary: Delete an AI provider credential
      tags:
      - AI Provider Credentials
    get:
      description: Returns metadata for one credential on this tenant. A missing id, or an id that belongs to another tenant, is 404. The credential itself is never included. Admin-only.
      operationId: getAIProviderCredential
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIProviderCredential'
          description: The credential's metadata
        '400':
          $ref: '#/components/responses/AIProviderBadRequestError'
        '401':
          $ref: '#/components/responses/AIProviderUnauthorizedError'
        '403':
          $ref: '#/components/responses/AIProviderForbiddenError'
        '404':
          $ref: '#/components/responses/AIProviderNotFoundError'
        '500':
          $ref: '#/components/responses/AIProviderInternalError'
      summary: Get one AI provider credential
      tags:
      - AI Provider Credentials
    patch:
      description: Changes the name, replaces the credential, or both. An omitted `credential` leaves the stored ciphertext untouched. A `credential` object uses the fields for the row's existing provider. Provider cannot be changed. The response is metadata only. Admin-only.
      operationId: updateAIProviderCredential
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAIProviderCredentialBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AIProviderCredential'
          description: The updated credential's metadata
        '400':
          $ref: '#/components/responses/AIProviderBadRequestError'
        '401':
          $ref: '#/components/responses/AIProviderUnauthorizedError'
        '403':
          $ref: '#/components/responses/AIProviderForbiddenError'
        '404':
          $ref: '#/components/responses/AIProviderNotFoundError'
        '500':
          $ref: '#/components/responses/AIProviderInternalError'
      summary: Update an AI provider credential
      tags:
      - AI Provider Credentials
components:
  schemas:
    AIProviderCredentialListResponse:
      properties:
        credentials:
          items:
            $ref: '#/components/schemas/AIProviderCredential'
          type: array
      required:
      - credentials
      type: object
    CredentialPayload:
      description: Write-only. openai requires api_key. amazon_bedrock requires region. azure_foundry requires base_url and api_key. Fields for another provider are rejected. The server seals the provider plaintext; this object is not stored as-is.
      properties:
        api_key:
          description: OpenAI or Azure Foundry API key. Never returned.
          maxLength: 4096
          type: string
        base_url:
          description: Azure Foundry endpoint. Must be an https URL.
          format: uri
          maxLength: 2048
          type: string
        region:
          description: Amazon Bedrock region, for example us-east-1.
          maxLength: 2048
          type: string
      type: object
    AIProviderCredential:
      description: Metadata only. The credential is never served.
      properties:
        created_at:
          format: date-time
          type: string
        id:
          format: uuid
          type: string
        name:
          type: string
        provider:
          enum:
          - openai
          - amazon_bedrock
          - azure_foundry
          type: string
        updated_at:
          format: date-time
          type: string
      required:
      - id
      - provider
      - name
      - created_at
      - updated_at
      type: object
    CreateAIProviderCredentialBody:
      properties:
        credential:
          $ref: '#/components/schemas/CredentialPayload'
        name:
          maxLength: 255
          type: string
        provider:
          enum:
          - openai
          - amazon_bedrock
          - azure_foundry
          type: string
      required:
      - provider
      - name
      - credential
      type: object
    UpdateAIProviderCredentialBody:
      description: At least one of name or credential is required.
      properties:
        credential:
          $ref: '#/components/schemas/CredentialPayload'
        name:
          maxLength: 255
          type: string
      type: object
    AIProviderStandardError:
      properties:
        code:
          type: string
        error:
          type: string
      required:
      - error
      - code
      type: object
  parameters:
    AdminRole:
      description: Must be `admin` for this endpoint.
      in: header
      name: X-User-Role
      required: true
      schema:
        type: string
    CredentialID:
      in: path
      name: id
      required: true
      schema:
        format: uuid
        type: string
  responses:
    AIProviderConflictError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: This tenant already has a credential for that provider (`ALREADY_EXISTS`)
    AIProviderUnauthorizedError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: Missing Authority header, or the gateway request signature did not verify
    AIProviderForbiddenError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: Caller is not a tenant admin
    AIProviderInternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: Internal server error
    AIProviderNotFoundError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: No credential with that id on this tenant (`NOT_FOUND`)
    AIProviderBadRequestError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AIProviderStandardError'
      description: The body was refused. `code` is `INVALID_PROVIDER` when provider is not `openai`, `amazon_bedrock`, or `azure_foundry`. `BAD_REQUEST` covers a missing field, a credential object whose fields do not match the provider, a non-https Azure base URL, a non-UUID id, or a body that is not a JSON object.
  securitySchemes:
    authorization:
      type: http
      scheme: bearer
      description: 'A personal access token (PAT) sent as `Authorization: Bearer <token>`. Tenant admins issue tokens from the Elastio console or with `POST /gateway/shared-services/v1/personal-access-tokens`.'
    bearerAuth:
      type: http
      scheme: bearer
      description: Integration channel token issued by Elastio for inbound partner events (Wiz).
externalDocs:
  description: Elastio Developer Portal
  url: https://developer.elastio.com
x-tagGroups:
- name: Platform
  tags:
  - System
  - Tenant Settings
  - Licenses
  - Plan
  - Billing
  - Early Access
  - AI Provider Credentials
- name: Identity & Access
  tags:
  - Users
  - User Groups
  - Roles
  - Account Groups
  - Personal Access Tokens
  - Audit Logs
- name: Inventory & Deployments
  tags:
  - Deployments
  - Assets
  - Search
  - Inventory
  - Asset Accounts
  - Tags
  - Azure Subscriptions
  - GCP Projects
  - IBM
  - OVA Accounts
  - Vault
  - Database Monitoring
  - Data
- name: Backups & Recovery Points
  tags:
  - Backup
- name: Hunts & Investigations
  tags:
  - Scans
  - Scan Jobs
  - Hunt Rules
  - Custom Hunts
  - Pursuit
  - Pursuit Scans
  - Threats
  - Ransomware
  - Data Classification
- name: Findings & Response
  tags:
  - Incidents
  - Findings
  - Violations
  - Issues
  - Posture
  - Compliance
  - DRS
- name: Policies & Jobs
  tags:
  - Policies
  - Policy Schedules
  - Policy Membership
  - System Policies
  - System Events
  - Jobs
- name: Recovery & Evidence
  tags:
  - Resilience Program
  - Recovery Verdict
  - Recovery Analytics
  - Evidence
  - Security Metrics
- name: Reporting
  tags:
  - Reports
  - Report Schedules
  - EQL
- name: Alerts & Integrations
  tags:
  - Alerts
  - Webhooks
  - Slack
  - Splunk
  - VirusTotal
  - Wiz
  - GuardDuty