> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get team egress settings

> The organization's default egress policy for new sandboxes (used when
neither the create request nor the template has one), what it compiles
to under your plan, and the plan's limits. Any role or key may read it.




## OpenAPI

````yaml /api-reference/anona-openapi.yaml get /v1/network
openapi: 3.0.3
info:
  title: Anona Compute API (Anona routes)
  version: 0.1.0
  description: >
    Routes the Anona Compute gateway serves next to the E2B-compatible API:

    live-view viewer tokens, SSH certificates, network policy, the credential

    vault, usage and billing, webhooks and telemetry export, thumbnails, preview
    links,

    public ports, pause when idle, template builds, and API key management.
servers:
  - url: https://api.compute.anonalabs.com
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Live view
  - name: SSH
  - name: Sandbox access
  - name: Templates
  - name: Network
  - name: Credential vault
  - name: Usage and billing
  - name: Webhooks and telemetry
  - name: API keys
  - name: Service
paths:
  /v1/network:
    get:
      tags:
        - Network
      summary: Get team egress settings
      description: |
        The organization's default egress policy for new sandboxes (used when
        neither the create request nor the template has one), what it compiles
        to under your plan, and the plan's limits. Any role or key may read it.
      operationId: getTeamNetwork
      responses:
        '200':
          description: >-
            The settings. `revision` is 0 and `spec` is `{}` when they were
            never set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamNetwork'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    TeamNetwork:
      type: object
      required:
        - tier
        - limits
        - revision
        - spec
        - compiled
      properties:
        tier:
          type: string
          example: paid
        limits:
          type: object
          required:
            - internetAllowed
            - defaultInternet
            - allowCustomDNS
            - maxAllowOut
            - maxDomainAllows
            - maxDenyOut
            - maxRules
          properties:
            internetAllowed:
              type: boolean
            defaultInternet:
              type: boolean
            allowCustomDNS:
              type: boolean
            maxAllowOut:
              type: integer
            maxDomainAllows:
              type: integer
            maxDenyOut:
              type: integer
            maxRules:
              type: integer
        revision:
          type: integer
        spec:
          $ref: '#/components/schemas/NetworkSpec'
        ceiling:
          type: object
        compiled:
          $ref: '#/components/schemas/CompiledPolicy'
        warnings:
          type: array
          items:
            type: string
    NetworkSpec:
      type: object
      description: An egress policy in the E2B wire shape. Unknown keys are refused.
      properties:
        allow_internet_access:
          type: boolean
        allowOut:
          type: array
          items:
            type: string
          description: >-
            IPs, CIDRs or exact host names to allow. Wildcard names such as
            *.example.com are refused with 400.
        denyOut:
          type: array
          items:
            type: string
          description: IPv4 addresses or CIDRs to block; 0.0.0.0/0 blocks all public egress
        dnsServers:
          type: array
          items:
            type: string
          description: >-
            Sandboxes always resolve through 1.1.1.1 and 1.0.0.1. Another IPv4
            address here is allowed as a destination when allowOut has a host
            name and public egress is off; the free plan accepts only those two.
        rules:
          type: object
          description: >-
            Per-host header transforms: {host: [{transform: {headers: {Name:
            "Bearer ${vault.name}"}}}]}. Each key is one exact host (a wildcard
            is refused with 400), and each header value one vault placeholder (a
            literal value is refused with 400).
          additionalProperties:
            type: array
            items:
              type: object
        allowPublicTraffic:
          type: boolean
    CompiledPolicy:
      type: object
      description: The policy as it is enforced.
      properties:
        allow_internet_access:
          type: boolean
        allowOut:
          type: array
          items:
            type: string
          nullable: true
        denyOut:
          type: array
          items:
            type: string
          nullable: true
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: The HTTP status code.
        message:
          type: string
        error_code:
          type: string
          description: >-
            Machine-readable reason, on some errors (for example
            `invalid_request`).
  responses:
    Unauthorized:
      description: No valid API key or session.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        An Anona Compute API key (`ac_` followed by lowercase hex; older keys
        start with `e2b_`).
    BearerAuth:
      type: http
      scheme: bearer
      description: 'The same API key, sent as `Authorization: Bearer ac_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.