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

# Get the team’s API usage

> Returns the current billing period and the team’s unique-store allowance and usage.



## OpenAPI

````yaml /openapi/v1.json get /v1/usage
openapi: 3.1.0
info:
  title: Shoplist API
  version: 1.0.0
servers:
  - url: https://api.shoplist.co
security: []
tags:
  - name: Account
  - name: Vocabulary
  - name: Stores
  - name: Apps
  - name: Contacts
  - name: Exports
  - name: Events
  - name: Webhooks
paths:
  /v1/usage:
    get:
      tags:
        - Account
      summary: Get the team’s API usage
      description: >-
        Returns the current billing period and the team’s unique-store allowance
        and usage.
      operationId: getUsage
      parameters: []
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      object:
                        type: string
                        const: usage
                        description: The resource type.
                      period:
                        type: object
                        properties:
                          start_at:
                            type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                            description: The inclusive start of the billing period in UTC.
                          end_at:
                            type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                            description: The exclusive end of the billing period in UTC.
                        required:
                          - start_at
                          - end_at
                        additionalProperties: false
                        description: The current billing period.
                      unique_stores:
                        type: object
                        properties:
                          limit:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                            description: >-
                              The number of unique stores the plan allows per
                              billing period.
                          used:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                            description: >-
                              The number of unique stores charged in this
                              period.
                          remaining:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                            description: >-
                              The number of additional unique stores available
                              in this period.
                        required:
                          - limit
                          - used
                          - remaining
                        additionalProperties: false
                        description: >-
                          The team’s unique-store allowance in the current
                          period.
                    required:
                      - object
                      - period
                      - unique_stores
                    additionalProperties: false
                    description: The requested resource.
                required:
                  - data
                additionalProperties: false
        '401':
          description: Unauthenticated
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: unauthenticated
                      type:
                        const: https://shoplist.co/docs/errors#unauthenticated
                      title:
                        const: Unauthenticated
                      status:
                        const: 401
        '403':
          description: Insufficient scope
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: insufficient_scope
                      type:
                        const: https://shoplist.co/docs/errors#insufficient_scope
                      title:
                        const: Insufficient scope
                      status:
                        const: 403
        '404':
          description: Not found
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: not_found
                      type:
                        const: https://shoplist.co/docs/errors#not_found
                      title:
                        const: Not found
                      status:
                        const: 404
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: rate_limited
                      type:
                        const: https://shoplist.co/docs/errors#rate_limited
                      title:
                        const: Rate limit exceeded
                      status:
                        const: 429
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: internal_error
                      type:
                        const: https://shoplist.co/docs/errors#internal_error
                      title:
                        const: Internal error
                      status:
                        const: 500
        '503':
          description: Service unavailable
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: service_unavailable
                      type:
                        const: https://shoplist.co/docs/errors#service_unavailable
                      title:
                        const: Service unavailable
                      status:
                        const: 503
      security:
        - bearerAuth: []
components:
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
          description: The URL that identifies and documents this error type.
        title:
          type: string
          minLength: 1
          description: The fixed title of the error type.
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: The HTTP status code of the response.
        detail:
          type: string
          minLength: 1
          description: An explanation of the error for this request.
        code:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - plan_required
            - allowance_exceeded
            - insufficient_credits
            - spending_cap_exceeded
            - insufficient_scope
            - not_found
            - method_not_allowed
            - idempotency_in_progress
            - cursor_expired
            - payload_too_large
            - idempotency_key_reused
            - rate_limited
            - internal_error
            - service_unavailable
          description: The stable machine-readable error code.
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
          description: The server-generated identifier for this request.
        errors:
          description: Details for up to 20 invalid inputs.
          maxItems: 20
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: The dotted path to the invalid input.
              message:
                type: string
                minLength: 1
                description: The validation message for that input.
            required:
              - path
              - message
            additionalProperties: false
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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