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

# Get business email admin console link

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns a Google sign-in link for the admin of the business email on `domain`. After signing in, the admin lands on the Google Admin console page where they accept Google's terms of service. Use it when [Get business email status](/api-reference/get-business-email-status) reports the domain as `TOS_SUSPENDED`.

The link names the admin's email address, and the admin signs in with their own Google password.

Only the workspace owner can get the link. A read-only token is refused. A workspace API key needs `business_email:manage`, which only the owner can grant, and runs as the owner. Limited to 6 requests a minute per caller. Some workspaces have a different limit.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/billing/business-email/admin-console-url
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/billing/business-email/admin-console-url:
    get:
      summary: Get business email admin console link
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns a Google sign-in link for the admin of the business email on
        `domain`. After signing in, the admin lands on the Google Admin console
        page where they accept Google's terms of service. Use it when [Get
        business email status](/api-reference/get-business-email-status) reports
        the domain as `TOS_SUSPENDED`.


        The link names the admin's email address, and the admin signs in with
        their own Google password.


        Only the workspace owner can get the link. A read-only token is refused.
        A workspace API key needs `business_email:manage`, which only the owner
        can grant, and runs as the owner. Limited to 6 requests a minute per
        caller. Some workspaces have a different limit.
      operationId: get_admin_console_url_api_billing_business_email_admin_console_url_get
      parameters:
        - name: domain
          in: query
          required: true
          schema:
            type: string
            description: >-
              Domain whose business email the link is for, as listed in
              `items[].domain` of Get business email status.
            title: Domain
          description: >-
            Domain whose business email the link is for, as listed in
            `items[].domain` of Get business email status.
          example: acme.com
      responses:
        '200':
          description: A Google sign-in link for the domain's admin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleAdminLink'
              example:
                url: >-
                  https://accounts.google.com/AccountChooser?Email=admin@acme.com&service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2Fac%2Ftos
        '400':
          description: >-
            This workspace has no billing account for business email, or its
            billing account couldn't be reached. Retry later if the workspace
            has business email.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You aren't the workspace owner, your token is read-only, or your key
            lacks `business_email:manage`.
        '404':
          description: >-
            The workspace has no business email on `domain`, or no Google admin
            was found for it.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
              example:
                detail:
                  - type: missing
                    loc:
                      - query
                      - domain
                    msg: Field required
        '429':
          description: Rate limit reached. Retry later.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - business_email:manage
        - WorkspaceApiKeyBearerAuth:
            - business_email:manage
components:
  schemas:
    GoogleAdminLink:
      properties:
        url:
          type: string
          title: Url
          description: >-
            Google sign-in link for the domain's Google admin. It names the
            admin's email address, and they sign in with their own Google
            password.
          example: >-
            https://accounts.google.com/AccountChooser?Email=admin@acme.com&service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2Fac%2Ftos
      type: object
      required:
        - url
      title: GoogleAdminLink
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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