Management
Build custom admin panels and team management tools
Management APIs allow you to build custom admin panels, team management tools, and analytics dashboards using OAuth authentication.
- Custom Admin Panels - Build tailored management interfaces for your users
- Team Collaboration - Enable multi-user team features in your apps
- Usage Analytics - Create custom dashboards for tracking usage and costs
- Self-Service Portals - Let users manage their own accounts via your interface
Authentication
All Management APIs require OAuth authentication with appropriate scopes.
// Example: Get user's teams
const teams = await fetch('https://hypery.ai/api/teams', {
headers: {
'Authorization': `Bearer ${oauthAccessToken}`
}
})Management APIs are only accessible via OAuth. API keys cannot be used for these endpoints.
Available APIs
User & Profile Management
Manage user profiles, preferences, and avatars.
Endpoints:
GET /api/user/me- Get current userPUT /api/user/profile- Update profileGET /api/user/preferences- Get preferencesGET /api/user/avatar- Get avatar
Required Scopes: user:read, user:write
View complete User API reference →
API Key Management
Let users manage their API keys through your app.
Endpoints:
GET /api/user/api-keys- List API keysPOST /api/user/api-keys- Create API keyDELETE /api/user/api-keys/:id- Revoke API key
Required Scopes: apikeys:read, apikeys:write
Team Management
Create and manage teams, invite members, and control permissions.
Endpoints:
GET /api/teams- List teamsPOST /api/teams- Create teamGET /api/teams/:id/members- List membersPOST /api/teams/:id/invite- Invite member
Required Scopes: teams:read, teams:write, teams:admin
View complete Teams API reference →
App Management
Manage OAuth apps, credentials, and analytics.
Endpoints:
GET /api/apps- List appsPOST /api/apps- Create appPOST /api/apps/:id/regenerate-credentials- Regenerate secretsGET /api/apps/:id/analytics- Get analytics
Required Scopes: apps:read, apps:write
View complete Apps API reference →
Billing & Usage
View credit balance, transactions, and usage analytics.
Endpoints:
GET /api/wallet/balance- Get credit balanceGET /api/wallet/transactions- Transaction historyPOST /api/wallet/topup- Add creditsGET /api/analytics/:slug- Usage analytics
Required Scopes: billing:read, billing:write
Credit Grants
Sponsor credits for your app's users — recurring free allowances and one-time gifts, funded from your balance.
Endpoints:
GET /api/apps/:id/grants/rules- List sponsored-credit rulesPOST /api/apps/:id/grants/rules- Create a rulePATCH /api/apps/:id/grants/rules/:ruleId- Update a ruleDELETE /api/apps/:id/grants/rules/:ruleId- Delete a rulePOST /api/apps/:id/grants- Grant a user credits nowGET /api/apps/:id/grants- List issued grants (audit)GET /api/apps/:id/grants/customers/:userId/balance- A user's balance
Required Scopes: read, write (app owner / billing admin only)
View complete Credit Grants API reference →
OAuth Scopes
Management APIs use a fine-grained permission system:
View complete scopes reference →
Example: Custom Admin Panel
// Build a custom team management interface
async function MyAdminPanel({ accessToken }: { accessToken: string }) {
// List teams
const teamsResponse = await fetch('https://hypery.ai/api/teams', {
headers: { 'Authorization': `Bearer ${accessToken}` }
})
const { data: teams } = await teamsResponse.json()
// Create new team
const createTeam = async (name: string) => {
return fetch('https://hypery.ai/api/teams', {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name,
slug: name.toLowerCase().replace(/\s+/g, '-')
})
})
}
// Invite member
const inviteMember = async (teamId: string, email: string) => {
return fetch(`https://hypery.ai/api/teams/${teamId}/invite`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
email,
role: 'member'
})
})
}
return (
<div>
{/* Your custom UI */}
</div>
)
}