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

# Get permissions

> Inspect this credential’s scopes, expiry and sender restriction.

Required permission: `authenticated`.



## OpenAPI

````yaml /openapi.json get /permissions
openapi: 3.1.0
info:
  title: Moonemail API
  version: 0.1.0
  description: >-
    Generated request, response and authorization contract. Covers authenticated
    product endpoints, not public discovery, dashboard assets or Stripe inbound
    webhooks. Go handlers enforce state-dependent and cross-field business
    validation.
servers:
  - url: https://api.moonemail.co
security: []
paths:
  /permissions:
    get:
      tags:
        - Permissions
      summary: Get permissions
      description: |-
        Inspect this credential’s scopes, expiry and sender restriction.

        Required permission: `authenticated`.
      operationId: get_permissions
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  permission:
                    type: string
                    enum:
                      - full_access
                      - sending_access
                      - scoped_access
                  scopes:
                    type: array
                    items:
                      type: string
                      enum:
                        - inboxes:read
                        - inboxes:write
                        - receiving:read
                        - emails:send
                        - emails:read
                        - emails:update
                        - domains:read
                        - domains:write
                        - domains:delete
                        - webhooks:read
                        - webhooks:write
                        - webhooks:delete
                        - suppressions:read
                        - suppressions:write
                        - suppressions:delete
                  domain_id:
                    type:
                      - string
                      - 'null'
                  expires_at:
                    type:
                      - string
                      - 'null'
                  can_manage_api_keys:
                    type: boolean
                  billing_requires_owner:
                    type: boolean
                    const: true
                required:
                  - permission
                  - scopes
                  - domain_id
                  - expires_at
                  - can_manage_api_keys
                  - billing_requires_owner
                additionalProperties: true
        default:
          description: API error
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - name
                  - message
                properties:
                  statusCode:
                    type: integer
                  name:
                    type: string
                  message:
                    type: string
      security:
        - bearerKey: []
components:
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: Moonemail API key; x-required-scope applies.

````

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