For the complete documentation index, see llms.txt. This page is also available as Markdown.

Investments

Create an investment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/create-investment
POST /functions/v1/create-investment HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Complete payment for an investment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/pay-investment
POST /functions/v1/pay-investment HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Process crypto payment (e.g. MetaMask)

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/process-crypto-payment
POST /functions/v1/process-crypto-payment HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Process MetaMask payment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/process-metamask-payment
POST /functions/v1/process-metamask-payment HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Request sponsored (gasless) tx; returns 402 if insufficient credits

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/sponsored-transaction
POST /functions/v1/sponsored-transaction HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

List investments for the current user

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/get-user-investments
POST /functions/v1/get-user-investments HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Create commitment (guest flow)

post
Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/create-commitment
POST /functions/v1/create-commitment HTTP/1.1
Host: your-project-ref.supabase.co
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Sync tenant investment data

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
200

Success

application/json
objectOptional
post/sync-tenant-investment
POST /functions/v1/sync-tenant-investment HTTP/1.1
Host: your-project-ref.supabase.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
{}

Last updated