Skip to main content
POST
/
search
Search tokens, users, and posts
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "type": "all",
  "limit": 20
}'
{
  "success": true,
  "results": {
    "tokens": [
      "<any>"
    ],
    "users": [
      "<any>"
    ],
    "posts": [
      "<any>"
    ]
  }
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
query
string
required
Minimum length: 1
type
enum<string>
default:all
Available options:
all,
tokens,
users,
posts
limit
integer
default:20
Required range: 1 <= x <= 100

Response

Successful response

success
boolean
required
results
object
required