---
updatedAt: 2026-04-20T19:58:19.000Z
agentTools:
  projectIndex: https://dev.opendatalabs.com/llms.txt
---

# List scopes for a source

Returns the scopes your app can request for a specific source when creating a hosted Connect session.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Open Data Labs API",
    "version": "v1",
    "description": "Server-side API for discovering sources and creating hosted Connect sessions."
  },
  "servers": [
    {
      "url": "https://api.opendatalabs.com/api/v1"
    }
  ],
  "tags": [
    {
      "name": "Sources",
      "description": "Discovery endpoints. Start here to confirm your API key works and to inspect available sources and scopes."
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "Pass an Open Data Labs API key for server-to-server requests."
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/sources/{source}/scopes": {
      "get": {
        "tags": [
          "Sources"
        ],
        "summary": "List scopes for a source",
        "description": "Returns the scopes your app can request for a specific source when creating a hosted Connect session.",
        "operationId": "listSourceScopes",
        "parameters": [
          {
            "name": "source",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "github",
                "oura",
                "instagram",
                "icloud_notes",
                "spotify"
              ],
              "example": "github"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scopes for the requested source.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "description",
                      "category"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "unauthorized": {
                    "value": {
                      "error": "unauthorized",
                      "message": "Invalid or missing token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Source not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```