AlterLabAlterLab
PricingComparePlaygroundBlogDocs
    AlterLabAlterLab
    PricingPlaygroundBlogDocsChangelog
    IntroductionInstallationYour First Request
    REST APIJob PollingAPI Keys
    OverviewPythonNode.js
    JavaScript RenderingOutput FormatsNewPDF & OCRCachingWebhooksWebSocket Real-TimeNewBring Your Own ProxyProWeb CrawlingNewBatch ScrapingNewSchedulerNewChange DetectionNewCloud Storage ExportNewSpend LimitsNewOrganizations & TeamsNewAlerts & NotificationsNew
    Structured ExtractionAIE-commerce ScrapingNews MonitoringPrice MonitoringNewMulti-Page CrawlingNewMonitoring DashboardNewAI Agent / MCPMCPData Pipeline to CloudNew
    PricingRate LimitsError Codes
    From FirecrawlFrom ApifyNewFrom ScrapingBee / ScraperAPINew
    PlaygroundPricingStatus
    Guide

    Organizations & Teams

    Collaborate with your team under a single organization. Share API keys, sessions, and credit balances while controlling access with role-based permissions.

    Dashboard Available

    You can also manage organizations from the dashboard settings. This guide covers the API for programmatic access and automation.

    How Organizations Work

    1

    Create

    Create an organization and become its owner. A unique slug is generated automatically from the name.

    2

    Invite

    Send email invitations to team members. Each invitation includes a role and expires after 7 days. Invitees receive a link to accept or decline.

    3

    Collaborate

    Members share the organization's credit balance, API keys, and browser sessions. All usage is tracked per-member in the audit log.

    Roles & Permissions

    Organizations have three roles arranged in a hierarchy. Higher roles inherit all permissions of lower roles.

    PermissionMemberAdminOwner
    Use shared API keys & sessionsYesYesYes
    View organization detailsYesYesYes
    View member list & audit logsYesYesYes
    Invite & remove membersNoYesYes
    Update organization settingsNoYesYes
    Change member rolesNoMembers onlyYes
    Promote to adminNoNoYes
    Transfer ownershipNoNoYes
    Delete organizationNoNoYes

    Owner Restrictions

    Only owners can promote members to admin, transfer ownership, or delete the organization. Admins can manage members but cannot escalate their own permissions.

    Creating an Organization

    POST
    /api/v1/organizations

    Create a new organization. You are automatically assigned the owner role. A URL-safe slug is generated from the name.

    curl -X POST https://alterlab.io/api/v1/organizations \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "Acme Scraping Team",
        "description": "Our production scraping infrastructure"
      }'

    Response

    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Acme Scraping Team",
      "slug": "acme-scraping-team-a1b2c3d4",
      "description": "Our production scraping infrastructure",
      "is_personal": false,
      "role": "owner",
      "member_count": 1,
      "created_at": "2026-03-24T10:00:00Z"
    }

    Inviting Members

    POST
    /api/v1/organizations/{org_id}/invitations

    Send an email invitation to a new team member. Requires admin or owner role. Invitations expire after 7 days and can be resent or cancelled.

    curl -X POST https://alterlab.io/api/v1/organizations/{org_id}/invitations \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "email": "[email protected]",
        "role": "member"
      }'

    Invitation Lifecycle

    Pending

    Invitation sent, waiting for the invitee to accept or decline. Valid for 7 days.

    Accepted

    Invitee clicked the link and joined the organization with the assigned role.

    Declined

    Invitee explicitly declined the invitation. You can send a new one if needed.

    Expired

    Invitation was not acted upon within 7 days. Use the resend endpoint to issue a fresh invitation.

    List Pending Invitations

    GET
    /api/v1/organizations/{org_id}/invitations
    curl https://alterlab.io/api/v1/organizations/{org_id}/invitations \
      -H "Authorization: Bearer YOUR_TOKEN"

    Resend an Invitation

    POST
    /api/v1/organizations/{org_id}/invitations/{invitation_id}/resend

    Generates a new token and resets the 7-day expiry. The old link becomes invalid.

    Cancel an Invitation

    DELETE
    /api/v1/organizations/{org_id}/invitations/{invitation_id}

    Managing Members

    GET
    /api/v1/organizations/{org_id}/members

    List all members of an organization. Results are sorted by role (owners first, then admins, then members) and paginated.

    curl https://alterlab.io/api/v1/organizations/{org_id}/members \
      -H "Authorization: Bearer YOUR_TOKEN"
    {
      "members": [
        {
          "id": "member-uuid",
          "user": {
            "id": "user-uuid",
            "email": "[email protected]",
            "name": "Jane Smith"
          },
          "role": "owner",
          "joined_at": "2026-03-01T10:00:00Z"
        },
        {
          "id": "member-uuid-2",
          "user": {
            "id": "user-uuid-2",
            "email": "[email protected]",
            "name": "John Doe"
          },
          "role": "member",
          "joined_at": "2026-03-15T14:30:00Z"
        }
      ],
      "total": 2
    }

    Update a Member's Role

    PATCH
    /api/v1/organizations/{org_id}/members/{user_id}
    curl -X PATCH https://alterlab.io/api/v1/organizations/{org_id}/members/{user_id} \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"role": "admin"}'

    Promotion Rules

    Only owners can promote members to admin. Admins can change member roles but cannot promote to admin. The owner's role cannot be changed directly — use the transfer ownership endpoint instead.

    Remove a Member

    DELETE
    /api/v1/organizations/{org_id}/members/{user_id}

    Remove a member from the organization. Requires admin or owner role. The organization owner cannot be removed.

    curl -X DELETE https://alterlab.io/api/v1/organizations/{org_id}/members/{user_id} \
      -H "Authorization: Bearer YOUR_TOKEN"

    Leave an Organization

    POST
    /api/v1/organizations/{org_id}/leave

    Voluntarily leave an organization. Owners must transfer ownership before leaving.

    curl -X POST https://alterlab.io/api/v1/organizations/{org_id}/leave \
      -H "Authorization: Bearer YOUR_TOKEN"

    Owner Cannot Leave

    If you are the organization owner, you must transfer ownership to another member before leaving. See the Transfer Ownership section below.

    Shared Resources

    When you switch to an organization context, all API activity is billed to the organization's credit balance. Members share:

    API Keys

    Organization-scoped API keys are accessible to all members. Create keys from the dashboard or API.

    Browser Sessions

    Authenticated sessions (cookies, headers) are shared across the organization for collaborative scraping.

    Credit Balance

    A single credit pool shared by all members. Usage is tracked per-member in the audit log.

    Webhooks

    Organization-level webhooks receive events for all scraping jobs within the organization.

    Set Default Organization

    Set which organization context is active by default when you authenticate:

    curl -X POST https://alterlab.io/api/v1/organizations/default \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"organization_id": "550e8400-e29b-41d4-a716-446655440000"}'

    Transfer Ownership

    POST
    /api/v1/organizations/{org_id}/transfer-ownership

    Transfer organization ownership to another member. Only the current owner can perform this action. The previous owner is demoted to admin.

    curl -X POST https://alterlab.io/api/v1/organizations/{org_id}/transfer-ownership \
      -H "Authorization: Bearer YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"new_owner_id": "user-uuid-of-new-owner"}'

    Irreversible Action

    Ownership transfer is immediate. The previous owner becomes an admin and can no longer transfer ownership or delete the organization. Ensure the new owner is a trusted team member.

    Audit Logs

    GET
    /api/v1/organizations/{org_id}/audit-logs

    View a chronological record of all significant actions within the organization. Audit logs track member changes, role updates, invitation activity, and ownership transfers.

    curl "https://alterlab.io/api/v1/organizations/{org_id}/audit-logs?page=1&page_size=25" \
      -H "Authorization: Bearer YOUR_TOKEN"
    {
      "entries": [
        {
          "id": "log-uuid",
          "action": "member.role_updated",
          "actor": {
            "id": "user-uuid",
            "email": "[email protected]",
            "name": "Jane Smith"
          },
          "details": {
            "target_user": "[email protected]",
            "old_role": "member",
            "new_role": "admin"
          },
          "created_at": "2026-03-20T16:45:00Z"
        }
      ],
      "total": 42,
      "page": 1,
      "page_size": 25
    }

    Retention

    Audit logs are retained indefinitely. Use the page and page_size query parameters to paginate through results.

    Organization Stats

    GET
    /api/v1/organizations/{org_id}/stats

    Get usage statistics and billing information for the organization, including member count, total credits used, and active API keys.

    curl https://alterlab.io/api/v1/organizations/{org_id}/stats \
      -H "Authorization: Bearer YOUR_TOKEN"

    Best Practices

    Use the Least Privilege Principle

    Assign the member role by default. Only promote to admin when a team member needs to manage invitations or settings.

    Set Up a Backup Owner

    If the owner leaves the company, the organization becomes unmanageable. Keep at least one admin who can receive ownership transfer.

    Monitor with Audit Logs

    Regularly review audit logs to track who joined, who was removed, and what role changes occurred. This is essential for compliance and security.

    Use Organization-Scoped API Keys

    Create API keys scoped to the organization rather than using personal keys. This ensures usage is billed to the organization and keys can be rotated without affecting individual accounts.

    Last updated: March 2026

    On this page

    AlterLabAlterLab

    AlterLab is the modern web scraping platform for developers. Reliable, scalable, and easy to use.

    Product

    • Pricing
    • Documentation
    • Changelog
    • Status

    Solutions

    • Python API
    • JS Rendering
    • Anti-Bot Bypass
    • Compare APIs

    Comparisons

    • Compare All
    • vs ScraperAPI
    • vs Firecrawl
    • vs ScrapingBee
    • vs Bright Data
    • vs Apify

    Company

    • About
    • Blog
    • Contact
    • FAQ

    Guides

    • Bypass Cloudflare
    • Playwright Anti-Detection
    • Puppeteer Bypass Guide
    • Selenium Detection Fix
    • Best Scraping APIs 2026

    Legal

    • Privacy
    • Terms
    • Acceptable Use
    • DPA
    • Cookie Policy
    • Licenses

    © 2026 RapierCraft Inc. All rights reserved.

    Middletown, DE