Use by API, Agent Builder

When I publish my workflow, the “Use by API” button doesn’t appear in the agent builder. How do I enable API usage? I need the agent ID to call Response API.