Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://api.weir.ai/admin/member/invite' \ -H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "email": "newadmin@weir.ai", "fullname": "New Admin", "role": "Admin" }'
{ "data": { "invitationId": "inv_admin_123456789", "email": "newadmin@weir.ai", "role": "Admin", "status": "pending", "expiresAt": "2024-01-29T15:30:00Z" }, "message": "Admin invitation sent successfully", "status": "success" }
Invite a new admin user
const inviteAdmin = async (inviteData, accessToken) => { const response = await fetch('https://api.weir.ai/admin/member/invite', { method: 'POST', headers: { 'Authorization': `Bearer ${accessToken}`, 'Content-Type': 'application/json' }, body: JSON.stringify(inviteData) }); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); return await response.json(); };
Was this page helpful?