Skip to main content
GET
GET /v1/storedProcedures/{id}

Retrieve a Stored Procedure

Get a single stored procedure by its unique ID or fully qualified name.

Get by ID

id
string
required
UUID of the stored procedure to retrieve.
fields
string
Comma-separated list of fields to include (e.g., owners,tags,followers,votes,extension,domains,sourceHash).
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.

Get by Fully Qualified Name

Use GET /v1/storedProcedures/name/{fqn} to retrieve by fully qualified name.
fqn
string
required
Fully qualified name of the stored procedure (e.g., snowflake_prod.analytics.public.usp_refresh_analytics).
fields
string
Comma-separated list of fields to include: owners, tags, followers, votes, extension, domains, sourceHash.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/storedProcedures/{id}

Returns

Returns a stored procedure object with all requested fields populated.

Response

id
string
Unique identifier for the stored procedure (UUID format).
name
string
Stored procedure name.
fullyQualifiedName
string
Fully qualified name in format service.database.schema.storedProcedure.
displayName
string
Human-readable display name.
description
string
Description of the stored procedure in Markdown format.
databaseSchema
object
Reference to the parent database schema.
storedProcedureCode
object
Source code and language. Only included when fields contains storedProcedureCode.
serviceType
string
Type of database service (e.g., Snowflake, BigQuery, PostgreSQL).
version
number
Version number for the entity.
owners
array
List of owners. Only included when fields contains owners.
tags
array
Classification tags. Only included when fields contains tags.
domains
array
Domain assignments. Only included when fields contains domains.

Error Handling