Xata · Schema

APIKeyPreview

Xata APIKeyPreview object

DatabasePostgresServerlessDeveloper ToolsBranchingAI Agent

Properties

Name Type Description
id string
name string
preview string
scopes array
projects array Projects this API key has access to
branches array Branches this API key has access to
created_at string
expiry string Date when the API key expires (null if no expiry)
last_used string Timestamp of the last time the key was used (null if never)
created_by string ID of the user that created this API key
created_by_key string ID of the API key that created this API key
View JSON Schema on GitHub

JSON Schema

xata-apikeypreview-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "APIKeyPreview",
  "description": "Xata APIKeyPreview object",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "preview": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "projects": {
      "description": "Projects this API key has access to",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "branches": {
      "description": "Branches this API key has access to",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expiry": {
      "description": "Date when the API key expires (null if no expiry)",
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "last_used": {
      "description": "Timestamp of the last time the key was used (null if never)",
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "created_by": {
      "description": "ID of the user that created this API key",
      "type": "string",
      "nullable": true
    },
    "created_by_key": {
      "description": "ID of the API key that created this API key",
      "type": "string",
      "nullable": true
    }
  },
  "required": [
    "id",
    "name",
    "preview",
    "created_at",
    "expiry",
    "last_used",
    "scopes",
    "projects",
    "branches"
  ]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/xata-apikeypreview"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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