Skip to content

Missing API endpoint for credentials management - 404 #1972

Description

@salacoste

Issue Description
When trying to manage credentials through the Skyvern API, I discovered that there's no /api/v1/credentials endpoint implemented, despite the existence of credential-related models and database methods in the codebase.

Current State
The schema models for credentials exist in skyvern/forge/sdk/schemas/credentials.py
Database models and methods exist (get_credentials, update_credential) in the codebase
The OpenAPI documentation doesn't include any credential management endpoints
A request to http://localhost:8000/api/v1/credentials returns a 404 Not Found error

Steps to Reproduce
Deploy Skyvern using Docker Compose
Try to access the credentials API: curl -I http://localhost:8000/api/v1/credentials
Observe the 404 status code response

Expected Behavior
I expected to have REST API endpoints for managing credentials, such as:
GET /api/v1/credentials - List all credentials
POST /api/v1/credentials - Create a new credential
GET /api/v1/credentials/{credential_id} - Get a specific credential
PUT /api/v1/credentials/{credential_id} - Update a credential
DELETE /api/v1/credentials/{credential_id} - Delete a credential
Current Workaround
Currently, it appears credentials must be passed as parameters in workflow or task requests, without a dedicated API for managing them independently.
Technical Details
Skyvern version: Latest from main branch (3bd4d80 doc for extracted_information_schema (#1971))
Deployment method: Docker Compose
Environment: Local development
Proposed Solution
Implement a REST API for credential management that leverages the existing database methods and schema models already present in the codebase. This would allow users to manage credentials independently from workflow and task requests.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions