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

# Projects

> List projects of a project developer



## OpenAPI

````yaml get /projects
openapi: 3.0.0
info:
  title: Terraspect API
  version: 0.0.2
servers:
  - url: https://api.terraspect.earth
    description: Production server
security: []
tags:
  - name: Projects
    description: Endpoints for retrieving project and developer information
  - name: Impact
    description: Endpoints for accessing impact and community metrics
  - name: Financials
    description: Endpoints for accessing financial data (some require extended permissions)
paths:
  /projects:
    get:
      summary: Get All Projects
      description: Retrieves a list of all accessible projects with pagination
      operationId: getProjects
      parameters:
        - name: project_developer_id
          in: query
          required: true
          description: Unique identifier of the project project developer
          schema:
            type: string
        - name: page
          in: query
          description: Page number for pagination
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: per_page
          in: query
          description: Number of items per page
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: List of projects successfully retrieved
          content:
            application/json:
              schema:
                type: object
                required:
                  - projects
                  - total_count
                properties:
                  projects:
                    type: array
                    items:
                      $ref: '#/components/schemas/Project'
                  total_count:
                    type: integer
                    description: Total number of available projects
                    example: 1
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_token:
                  summary: No token provided
                  value:
                    code: MISSING_TOKEN
                    message: No bearer token provided
                expired_token:
                  summary: Token expired
                  value:
                    code: TOKEN_EXPIRED
                    message: Token has expired. Please obtain a new token.
                invalid_token:
                  summary: Invalid token
                  value:
                    code: INVALID_TOKEN
                    message: Token is malformed or signature is invalid
      security:
        - StandardAuth: []
components:
  schemas:
    Project:
      type: object
      properties:
        project_id:
          type: string
          description: Unique identifier for the project
          example: proj_789012
        name:
          type: string
          description: Official project name
          example: Kisumu Reforestation Project
        project_currency:
          type: string
          description: ISO 4217 currency code
          example: KES
        project_developer:
          $ref: '#/components/schemas/ProjectDeveloper'
      required:
        - project_id
        - name
        - project_currency
        - project_developer
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code for machine processing
          example: INVALID_PROJECT_ID
        message:
          type: string
          description: Human-readable error message
          example: The provided project ID does not exist
        details:
          type: object
          description: Additional error details when available
          nullable: true
    ProjectDeveloper:
      type: object
      required:
        - project_developer_id
        - project_developer_name
        - country_code
        - country_name
      properties:
        project_developer_id:
          type: string
          description: Unique identifier for the project developer
          example: pd_123456
        project_developer_name:
          type: string
          description: Official name of the project developer
          example: Green Forest Initiative
        country_code:
          type: string
          description: ISO 3166-1 alpha-2 country code
          minLength: 2
          maxLength: 2
          example: KE
        country_name:
          type: string
          description: Full country name
          example: Kenya
  securitySchemes:
    StandardAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Standard access token, in the format `Authorization: Bearer <token>`

````