MechaMental
Api reference

Tool Config Profiles

List Profiles

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles"
{
  "total": 0,
  "has_more": false,
  "next_cursor": "string",
  "profiles": [
    {
      "profile_id": "string",
      "tool_instance_id": "string",
      "environment_id": "string",
      "workspace_id": "string",
      "org_id": "string",
      "name": "string",
      "configuration": {},
      "credential_refs": {
        "property1": "string",
        "property2": "string"
      },
      "auth_config": {},
      "is_active": true,
      "created_by": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ]
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Create Profile

POST
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles" \  -H "Content-Type: application/json" \  -d '{    "environment_id": "string",    "name": "string"  }'
{
  "message": "Tool config profile created successfully",
  "profile": {
    "profile_id": "string",
    "tool_instance_id": "string",
    "environment_id": "string",
    "workspace_id": "string",
    "org_id": "string",
    "name": "string",
    "configuration": {},
    "credential_refs": {
      "property1": "string",
      "property2": "string"
    },
    "auth_config": {},
    "is_active": true,
    "created_by": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Profile By Environment

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles/by-environment/{environment_id}

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id
environment_id*Environment Id

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles/by-environment/string"
{
  "profile_id": "string",
  "tool_instance_id": "string",
  "environment_id": "string",
  "workspace_id": "string",
  "org_id": "string",
  "name": "string",
  "configuration": {},
  "credential_refs": {
    "property1": "string",
    "property2": "string"
  },
  "auth_config": {},
  "is_active": true,
  "created_by": "string",
  "created_at": "string",
  "updated_at": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Get Profile

GET
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles/{profile_id}

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id
profile_id*Profile Id

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles/string"
{
  "profile_id": "string",
  "tool_instance_id": "string",
  "environment_id": "string",
  "workspace_id": "string",
  "org_id": "string",
  "name": "string",
  "configuration": {},
  "credential_refs": {
    "property1": "string",
    "property2": "string"
  },
  "auth_config": {},
  "is_active": true,
  "created_by": "string",
  "created_at": "string",
  "updated_at": "string"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Delete Profile

DELETE
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles/{profile_id}

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id
profile_id*Profile Id

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles/string"
{
  "message": "Tool config profile deleted successfully"
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}

Update Profile

PUT
/v1/orgs/{org_id}/workspaces/{workspace_id}/tool-instances/{instance_id}/config-profiles/{profile_id}

Path Parameters

org_id*Org Id
workspace_id*Workspace Id
instance_id*Instance Id
profile_id*Profile Id

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://loading/v1/orgs/string/workspaces/string/tool-instances/string/config-profiles/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "message": "Tool config profile updated successfully",
  "profile": {
    "profile_id": "string",
    "tool_instance_id": "string",
    "environment_id": "string",
    "workspace_id": "string",
    "org_id": "string",
    "name": "string",
    "configuration": {},
    "credential_refs": {
      "property1": "string",
      "property2": "string"
    },
    "auth_config": {},
    "is_active": true,
    "created_by": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "error": "RESOURCE_NOT_FOUND",
  "message": "The requested resource was not found",
  "details": {
    "resource_type": "example",
    "resource_id": "xxx"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 404
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}