The Skills REST API provides complete management of executable skills that enhance persona capabilities. Skills enable AI personas to perform specific actions, access external systems, and provide specialized functionality beyond conversational responses.
Base URL: https://your-api-name.mercury.ratiomachina.com Authentication: x-mercury-api-key: YOUR_API_KEY
No query parameters supported. Returns all skills with count.
{
"skills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis",
"role": "sentimentAnalysis",
"data": {"model": "advanced", "confidence_threshold": 0.8},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"count": 1
}{
"name": "Sentiment Analysis",
"externalId": "skill123",
"role": "sentimentAnalysis",
"data": {"model": "advanced"}
}{
"skill": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis",
"role": "sentimentAnalysis",
"data": {"model": "advanced"},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}id - Skill UUID or external IDNo query parameters supported.
{
"skill": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis",
"role": "sentimentAnalysis",
"data": {"model": "advanced", "confidence_threshold": 0.8},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}Update skill configuration, parameters, or metadata. Changes create a new version for tracking purposes.
{
"name": "Updated Sentiment Analysis",
"role": "sentimentAnalysis",
"data": {"model": "premium", "confidence_threshold": 0.9}
}{
"skill": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Updated Sentiment Analysis",
"role": "sentimentAnalysis",
"data": {"model": "premium", "confidence_threshold": 0.9},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T11:45:00Z"
}
}⚠️ Warning: This will permanently delete the skill.
id - Skill UUID or external IDNo query parameters supported.
{
"message": "Skill deleted successfully",
"deletedSkill": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis",
"role": "sentimentAnalysis"
}
}Execute a skill with specified parameters and context.
{
"skillId": "123e4567-e89b-12d3-a456-426614174000",
"parameters": {"text": "I love this product!"},
"context": {"conversationId": "conv789", "messageId": "msg456"}
}{
"execution": {
"id": "abc12345-e89b-12d3-a456-426614174000",
"skillId": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"result": {"sentiment": "positive", "confidence": 0.95},
"createdAt": "2024-01-15T16:30:00Z"
}
}id - Skill UUID or external IDNo query parameters supported.
{
"executions": [
{
"id": "abc12345-e89b-12d3-a456-426614174000",
"skillId": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"result": {"sentiment": "positive", "confidence": 0.95},
"createdAt": "2024-01-15T16:30:00Z"
}
]
}id - Skill UUID or external IDexecution_id - Execution UUID{
"execution": {
"id": "abc12345-e89b-12d3-a456-426614174000",
"skillId": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"parameters": {"text": "I love this product!"},
"result": {"sentiment": "positive", "confidence": 0.95},
"createdAt": "2024-01-15T16:30:00Z"
}
}Archive multiple skills by their external IDs instead of deleting them. Archived skills retain all data.
{
"external_ids": [
"skill123",
"skill456"
]
}{
"message": "2 skill(s) archived successfully",
"archived": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis",
"archived": true
}
],
"archived_count": 2,
"already_archived_count": 0,
"not_found_count": 0
}Delete multiple skills by their external IDs.
⚠️ Warning: This will permanently delete the skills and all associated executions.
{
"external_ids": [
"skill123",
"skill456"
]
}{
"message": "2 skill(s) deleted successfully",
"deletedCount": 2,
"deletedSkills": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "skill123",
"name": "Sentiment Analysis"
}
],
"notFound": []
}