> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serviceplan-agents.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API

> Use your coworkers programmatically.

For developers who want to call a coworker directly from code — to embed one inside your own internal tool, or automate a workflow — an API is available alongside email, Teams, and WhatsApp.

<Info>
  This page is written for a technical audience. If you just want to talk to a coworker, see [Email](/en/interfaces/email) instead.
</Info>

## Two ways to connect

<CardGroup cols={2}>
  <Card title="Completions API" icon="terminal">
    Compatible with the OpenAI chat completions format — a drop-in option if your tooling is already wired up for that format.
  </Card>

  <Card title="Responses API" icon="hourglass">
    Built for longer-running tasks, where you want to check back in on progress rather than wait for one response.
  </Card>
</CardGroup>

## Getting access

<Steps>
  <Step title="Request credentials">
    Reach out to your Serviceplan Agents contact for API access and credentials.
  </Step>

  <Step title="Pick your integration style">
    Use the Completions API for simple request/reply calls, or the Responses API when a task will take a while to complete.
  </Step>

  <Step title="Call your coworker like any other endpoint">
    Send your request with the task described in plain language, the same way you'd brief a coworker by email.
  </Step>
</Steps>

<Tip>
  Everything a coworker can do by email or chat — research, dashboards, coordination — is available the same way through the API.
</Tip>
