Organizations & Teams API
BETA FEATURE
This feature is currently in beta. API endpoints and functionality may change.
Want early access? Email us at support@oilpriceapi.com 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": "admin@acme.com",
"role": "admin",
"joined_at": "2025-01-15T10:00:00Z"
}
]
}
Add Team Member
POST /organizations/members
Request Body:
{
"email": "newuser@acme.com",
"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": "invited@company.com",
"role": "member",
"message": "Join our team on OilPriceAPI"
}
Accept Invitation
GET /organizations/invitations/:id/accept
POST /organizations/invitations/:id/confirm_accept
Shared Request Quota
Teammate seats on a paid owner's organization share the owner's request quota. They do not get a quota of their own.
- Every request a seat makes counts against the owner's monthly counter.
- The owner and all seats are refused together when that counter reaches the owner's plan limit.
- Seats never multiply the quota. A Starter owner with four seats has 50,000 requests a month in total, not 50,000 each.
A seat uses the owner's quota only while all of these hold:
- the organization is active,
- the teammate has accepted the invitation and is not the owner,
- the owner has a paid subscription (active, trialing or past due), and
- the owner's API access is not suspended.
If any of these stops holding, the seat goes back to its own Free limit and its own counter.
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
The Organizations API is in invite-only beta and is not yet part of the published plan ladder (Free, Developer, Starter, Professional, Scale). Seat pricing and plan availability have not been finalised — email support@oilpriceapi.com and we will scope it with you.
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.