Skip to content
Management API Reference

Generate TypeScript types

get/v1/projects/{ref}/types/typescript

Returns the TypeScript types of your schema for use with supabase-js.

OAuth scopes

  • database:read

Path parameters

  • ref
    Required
    string

    Project ref

Query parameters

  • included_schemas
    Optional
    string

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

1
{
2
"types": "lorem"
3
}