User Management API
Overview
List Users
import requests
import os
# API credentials
api_endpoint = "<YOUR_API_ENDPOINT>"
api_key = "<YOUR_API_KEY>"
api_secret = "<YOUR_API_SECRET>"
graphql_query = """
query ListUsers {
listUsers {
ok
activeUsers {
uid
email
name
accountType
}
invitedUsers {
email
accountType
inviteStatus
}
}
}
"""
response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
"Content-Type": "application/json",
"X-API-KEY": api_key,
"X-API-SECRET": api_secret,
})
print(response.json())Invite Users
Update User Role
Disable User
Last updated
Was this helpful?