Organizations & Teams API
BETA FEATURE
This feature is currently in beta. API endpoints and functionality may change.
Want early access? Email us at [email protected] to join the beta program.
Overview
The Organizations API allows you to manage team accounts, invite members, and share API access across your organization. Perfect for enterprises that need centralized billing and usage tracking.
Features
- Team Management: Add and remove team members
- Role-Based Access: Admin, Member, and Read-Only roles
- Centralized Billing: Single invoice for entire organization
- Usage Analytics: Track API usage per team member
- Invitation System: Invite users via email
Endpoints
Organization Dashboard
GET /organizations/dashboard
Returns organization details and member list.
Response:
{
"organization": {
"id": "org_123",
"name": "Acme Energy Trading",
"created_at": "2025-01-15T10:00:00Z",
"plan": "business",
"member_count": 5,
"api_calls_this_month": 45000
},
"members": [
{
"id": "user_456",
"email": "[email protected]",
"role": "admin",
"joined_at": "2025-01-15T10:00:00Z"
}
]
}
Add Team Member
POST /organizations/members
Request Body:
{
"email": "[email protected]",
"role": "member"
}
Update Member Role
PATCH /organizations/members/:id
Request Body:
{
"role": "admin"
}
Remove Member
DELETE /organizations/members/:id
Send Invitation
POST /organizations/invitations
Request Body:
{
"email": "[email protected]",
"role": "member",
"message": "Join our team on OilPriceAPI"
}
Accept Invitation
GET /organizations/invitations/:id/accept
POST /organizations/invitations/:id/confirm_accept
Roles & Permissions
| Permission | Admin | Member | Read-Only |
|---|---|---|---|
| View prices | Yes | Yes | Yes |
| View usage analytics | Yes | Yes | Yes |
| Manage API keys | Yes | Yes | No |
| Invite members | Yes | No | No |
| Remove members | Yes | No | No |
| Change billing | Yes | No | No |
Pricing
Organizations features are available on Business and Enterprise plans.
| Plan | Included Seats | Additional Seats |
|---|---|---|
| Business | 5 | $29/seat/month |
| Enterprise | 20 | Custom pricing |
Get Beta Access
JOIN THE BETA
Organizations API is currently invite-only. To request access:
Include your company name, use case, and expected team size.