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

# Resolve Folder ID by Path

Resolves a folder's ID from its dot-separated path (e.g., `"My Folder.Subfolder"`). Useful for programmatically navigating the folder hierarchy when you know the folder names but not the IDs.


## OpenAPI

````yaml GET /api/public/v2/folders/resolve-id
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/folders/resolve-id:
    get:
      tags:
        - folders
      summary: Resolve Folder ID by Path
      operationId: resolve_folder_id_api_public_v2_folders_resolve_id_get
      parameters:
        - name: workspace_id
          in: query
          required: true
          schema:
            type: integer
            title: Workspace ID
            description: The ID of the workspace containing the folder.
        - name: path
          in: query
          required: true
          schema:
            type: string
            title: Path
            description: >-
              Dot-separated folder path to resolve (e.g., "My
              Folder.Subfolder").
      responses:
        '200':
          description: Folder ID resolved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveFolderIdResponse'
        '400':
          description: Bad request - Missing or invalid workspace_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          description: Folder path not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    ResolveFolderIdResponse:
      type: object
      properties:
        id:
          type: integer
          description: The ID of the resolved folder.
      title: ResolveFolderIdResponse
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  responses:
    UnauthorizedError:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation error - request parameters or body are invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/HTTPValidationError'
              - $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````