Skip to main content

My projects

Retrieve all projects owned by the authenticated user, including both public and private projects.

Endpoint

GET /api/projects/mine

Authentication

Requires JWT authentication.

Query Parameters

page
number
default:"1"
Page number for pagination
limit
number
default:"20"
Number of projects per page (max 100)

Response

projects
array
Array of project objects
pagination
object
Pagination metadata

Example

curl https://api.orquestra.dev/api/projects/mine \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response Example

{
  "projects": [
    {
      "id": "abc123",
      "name": "Token Swap Program",
      "description": "DEX token swap protocol",
      "programId": "TokenSwap11111111111111111111111111111111",
      "isPublic": true,
      "currentVersion": 3,
      "createdAt": "2024-03-01T10:00:00.000Z",
      "updatedAt": "2024-03-15T14:30:00.000Z"
    },
    {
      "id": "def456",
      "name": "NFT Marketplace",
      "description": "NFT trading platform",
      "programId": "NFTMarket1111111111111111111111111111111",
      "isPublic": false,
      "currentVersion": 1,
      "createdAt": "2024-03-10T12:00:00.000Z",
      "updatedAt": "2024-03-10T12:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 2
  }
}

Use Cases

Display all user projects in the dashboard for quick access and management.
List projects to select one for updating, deleting, or viewing details.
Export user’s project metadata for backup or migration purposes.

Next Steps

List all projects

Browse public projects from all users

Get project details

Retrieve detailed information about a specific project

Build docs developers (and LLMs) love