Open Context Protocol is live! 🚀 Read the launch post
usersListSshSigningKeysForUser

usersListSshSigningKeysForUser

List SSH signing keys for a user

Details

  • Method: GET
  • Path: /users/{username}/ssh_signing_keys
  • Operation ID: users/list-ssh-signing-keys-for-user

Parameters

{
  "username": {
    "description": "The handle for the GitHub user account.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "per_page": {
    "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
    "required": false,
    "location": "query",
    "type": "integer"
  },
  "page": {
    "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
    "required": false,
    "location": "query",
    "type": "integer"
  }
}

Response Schema

{
  "type": "array",
  "items": {
    "title": "SSH Signing Key",
    "description": "A public SSH key used to sign Git commits",
    "type": "object",
    "properties": {
      "key": {
        "type": "string"
      },
      "id": {
        "type": "integer"
      },
      "title": {
        "type": "string"
      },
      "created_at": {
        "type": "string",
        "format": "date-time"
      }
    },
    "required": [
      "key",
      "id",
      "title",
      "created_at"
    ]
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('github')

# Call this tool
result = await agent.call_tool('usersListSshSigningKeysForUser', {
    # Add required parameters here
})