Sample - OpenAI API
GET/skills/{skill_id}

Get a skill

Retrieves a skill by its identifier. Use this endpoint when you need the skill metadata, including its current default and latest versions. The response contains the complete skill record.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
skill_idstringrequired
The identifier of the skill to retrieve.

2 status codes
200Returns the skill object with its identifier, name, description, creation timestamp, default version, and latest version.
idstringrequired
Unique identifier for the skill.
objectstringrequired
The object type, which is `skill`.
Allowed:skillDefault:skill
namestringrequired
Name of the skill.
descriptionstringrequired
Description of the skill.
created_atintegerrequired
Unix timestamp (seconds) for when the skill was created.
default_versionstringrequired
Default version for the skill.
latest_versionstringrequired
Latest version for the skill.
429Returned when the request is rejected because the rate limit has been exceeded.
errorobjectrequired

Error handling

A 429 is returned when the request exceeds the rate limit. skill_id must identify the skill whose metadata you want to retrieve.