Snowflake · Arazzo Workflow

Snowflake Create Database, Verify, and Add Schema

Version 1.0.0

Create a database, describe it to confirm, then create a schema inside it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub DataData WarehouseData LakehouseCloud Data PlatformAnalyticsArtificial IntelligenceData EngineeringData GovernanceSQLApache IcebergModel Context ProtocolT1ArazzoWorkflows

Provider

snowflake

Workflows

create-database-and-schema
Create a database, fetch it to confirm, then create a schema within it.
Creates a database, describes it to verify creation, and creates a schema inside that database, chaining the database name from inputs through all three steps.
3 steps inputs: authToken, comment, databaseName, schemaName, tokenType outputs: databaseStatus, schemaStatus
1
createDatabase
Create the database using errorIfExists create mode.
2
fetchDatabase
Describe the database by name to confirm it exists before adding a schema.
3
createSchema
Create the schema inside the confirmed database.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Snowflake Create Database, Verify, and Add Schema
  summary: Create a database, describe it to confirm, then create a schema inside it.
  description: >-
    A staged provisioning flow that creates a database, confirms it exists by
    describing it, and then creates a schema scoped to that database. The middle
    describe step guards the schema creation so it only proceeds against a
    database that is known to exist. Each step inlines its Authorization bearer
    token and the X-Snowflake-Authorization-Token-Type header, its create-mode
    query parameter, and its JSON request body so the chain can be read and
    executed without opening the underlying OpenAPI descriptions.
  version: 1.0.0
sourceDescriptions:
- name: databaseApi
  url: ../openapi/snowflake-database-api-openapi.yml
  type: openapi
- name: schemaApi
  url: ../openapi/snowflake-schema-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-database-and-schema
  summary: Create a database, fetch it to confirm, then create a schema within it.
  description: >-
    Creates a database, describes it to verify creation, and creates a schema
    inside that database, chaining the database name from inputs through all
    three steps.
  inputs:
    type: object
    required:
    - authToken
    - databaseName
    - schemaName
    properties:
      authToken:
        type: string
        description: Bearer token (KEYPAIR_JWT, OAUTH, or programmatic access token).
      tokenType:
        type: string
        description: Value for the X-Snowflake-Authorization-Token-Type header.
        default: OAUTH
      databaseName:
        type: string
        description: Name of the database to create.
      schemaName:
        type: string
        description: Name of the schema to create within the database.
      comment:
        type: string
        description: Optional comment applied to the created resources.
  steps:
  - stepId: createDatabase
    description: Create the database using errorIfExists create mode.
    operationId: createDatabase
    parameters:
    - name: createMode
      in: query
      value: errorIfExists
    - name: Authorization
      in: header
      value: Bearer $inputs.authToken
    - name: X-Snowflake-Authorization-Token-Type
      in: header
      value: $inputs.tokenType
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.databaseName
        comment: $inputs.comment
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  - stepId: fetchDatabase
    description: Describe the database by name to confirm it exists before adding a schema.
    operationId: fetchDatabase
    parameters:
    - name: name
      in: path
      value: $inputs.databaseName
    - name: Authorization
      in: header
      value: Bearer $inputs.authToken
    - name: X-Snowflake-Authorization-Token-Type
      in: header
      value: $inputs.tokenType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      databaseName: $response.body#/name
  - stepId: createSchema
    description: Create the schema inside the confirmed database.
    operationId: createSchema
    parameters:
    - name: database
      in: path
      value: $inputs.databaseName
    - name: createMode
      in: query
      value: errorIfExists
    - name: Authorization
      in: header
      value: Bearer $inputs.authToken
    - name: X-Snowflake-Authorization-Token-Type
      in: header
      value: $inputs.tokenType
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.schemaName
        comment: $inputs.comment
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  outputs:
    databaseStatus: $steps.createDatabase.outputs.status
    schemaStatus: $steps.createSchema.outputs.status

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow 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 workflow
curl "https://apis.io/api/v1/arazzo/snowflake-create-database-and-schema-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.