Skip to main content
PUT
/
servers
/
{qualifiedName}
/
icon
JavaScript
import Smithery from '@smithery/api';

const client = new Smithery({
  apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted
});

const response = await client.servers.icon.upload('qualifiedName');

console.log(response.iconUrl);
{
  "iconUrl": "https://icons.smithery.ai/server-id.png"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

qualifiedName
string
required

The server's qualified name (e.g. 'namespace/server' or 'namespace' for namespace-only servers). Use %2F to encode the slash.

Response

Icon uploaded successfully

iconUrl
string
required
Example:

"https://icons.smithery.ai/server-id.png"