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

# Agent quickstart

> Create or connect a Tsenta account from an AI agent, apply to jobs and check the result over plain HTTP.

An AI agent can create or connect a person's Tsenta account, add their resume, apply to jobs and check that the applications went out, using plain HTTP and a Bearer token. The person reads a 6-digit code from their inbox, gives their street address and ZIP code (a resume doesn't have them), and approves each tailored resume unless they turn on auto-approval. A new account gets 25 free applications.

The complete copy-paste script, with curl and jq, is at [tsenta.com/agents](https://tsenta.com/agents). A markdown version for agents is at [tsenta.com/agents.md](https://tsenta.com/agents.md). This page explains the same path.

Applying sends real applications to employers. Run these steps only with the person's agreement, using their own email and resume.

## The path

1. **Start a signup.** `POST https://api.autojobs.me/api/v1/agent-signup/start` with the person's email and your agent's name. Tsenta emails them a 6-digit code that expires in 10 minutes.
2. **Verify the code.** `POST https://api.autojobs.me/api/v1/agent-signup/verify` with the `signup_id` and the code. You get an access token, a refresh token and a client ID, and `account` says whether the account was `created` or already `existing`.
3. **Add the resume** when the account has none yet, or reading the last one failed. Call `submit-resume` with the resume as structured JSON you extract yourself. Decide this from `get-profile-status` (`hasResume`, `profileExtractionStatus`), not from `account`: verify says `created` only the first time.
4. **Wait for it to be read.** Poll `get-profile-status` until `profileExtractionStatus` is `completed`, usually 30 to 60 seconds, then read `missingForApplication`.
5. **Set work authorization** with `set-work-authorization`, from the person's answers. A new profile starts at "authorized in the US, no sponsorship", which is only a guess, so ask the person even when nothing is listed as missing.
6. **Find jobs** with `get-job-recommendations`. Keep ones with `isSupportedAts: true`.
7. **Apply** with `apply-to-job` and a `jobIds` list.
8. **Check the result** with `get-evaluation-summary`, which returns counts by status and a one-sentence `verdict`.

For an existing account, call `get-evaluation-summary` first. It may already have a resume and applications.

## Sign up

```bash theme={null}
curl -sS -X POST https://api.autojobs.me/api/v1/agent-signup/start \
  -H "Content-Type: application/json" \
  -d '{"email": "person@example.com", "agent_name": "My job search agent"}'

curl -sS -X POST https://api.autojobs.me/api/v1/agent-signup/verify \
  -H "Content-Type: application/json" \
  -d '{"signup_id": "as_...", "code": "482913"}'
```

`agent_name` is the name the person sees for this connection. An optional `name` sets the full name of a new account. The start response is the same whether or not the email already has an account. Keep the refresh token and client ID private.

## Call a tool

Every tool the [MCP connector](https://docs.tsenta.com/product/mcp-connector.md) offers is also an HTTP endpoint. POST the tool's input as the JSON body, with the access token as a Bearer token. The output is under `result`.

```bash theme={null}
curl -sS -X POST https://api.autojobs.me/api/v1/agent/tools/get-profile-status \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

`GET https://api.autojobs.me/api/v1/agent/tools` lists every tool with its description and input schema. Read it instead of guessing inputs. The [OpenAPI document](https://api.autojobs.me/api/v1/agent/openapi.json) describes the signup, tool and token endpoints.

Tool calls use the same account, application allowance, permissions and limits as the MCP connector.

## What only the person can do

* Read the code from their inbox.
* Give their street address and ZIP code. A resume doesn't include them. Ask the person, then save their answers with `set-personal-info` (`address` and `zipCode`). Over MCP, `set-personal-info` doesn't take location, so there the `apply-to-job` result includes a sign-in link to the person's profile (`profileUrl`). Give that link only to the person.
* Decide on what Tsenta prepared, as described below.

## Review before anything is sent

Tsenta's review controls stay separate. Both reviews belong to the person: show them what Tsenta prepared and act on their answer.

* **Resume auto-approval** starts off on a new account. After Tsenta tailors the resume for a job, the application waits as `PENDING_RESUME_REVIEW` and nothing is sent. Get the tailored resume with `get-application-status` and `"include": ["resumePdfUrl"]` (the link expires after 5 minutes), show it to the person, and call `approve-application` only after they say yes. The person can turn auto-approval on with `set-apply-preferences` and `{"autoApproveResume": true}`.
* **Review before submit** is off by default. With `set-apply-preferences` and `{"reviewBeforeSubmit": true}`, Tsenta fills compatible employer forms and stops before the final submit, as `PENDING_SUBMIT_REVIEW`. Read the filled answers with `get-application-review`, then call `submit-application-review` with `"decision": "approve"` (and optional `edits` for editable fields) or `"decision": "reject"`, which skips the application and returns it to the allowance. Other systems proceed without this pause.

See [How applications work](https://docs.tsenta.com/product/how-auto-apply-works.md) for how these controls relate to Auto Apply.

## Use MCP with the same token

The access token also works as a Bearer token on the MCP server at `https://api.autojobs.me/api/v1/mcp`. In Claude Code:

```bash theme={null}
claude mcp add --transport http tsenta https://api.autojobs.me/api/v1/mcp \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

A header keeps the token it was given, and access tokens expire after an hour. To avoid pasting tokens, connect with OAuth sign-in instead, as described in [MCP connector](https://docs.tsenta.com/product/mcp-connector.md).

## Refresh the access token

Access tokens last an hour. Get a new one from the existing token endpoint:

```bash theme={null}
curl -sS -X POST https://api.autojobs.me/oauth/token \
  --data-urlencode grant_type=refresh_token \
  --data-urlencode "refresh_token=$REFRESH_TOKEN" \
  --data-urlencode "client_id=$CLIENT_ID"
```

The response returns the same refresh token. A refresh token expires after 30 days without use. After that, sign in again with start and verify.

## Limits

* A new account gets 25 free applications in total, not per month. Each queued application uses one, and a failed or skipped one is returned. See [Buy more applications](https://docs.tsenta.com/product/buy-more-applications.md) for more.
* The code has 6 digits, expires in 10 minutes and allows 5 tries. A new signup replaces the previous code.
* Starting a signup is rate limited. A `429` response includes `retry_after` and a `Retry-After` header, in seconds.
* Tool calls are throttled per account, and some tools have a daily cap that resets at midnight UTC.

## Errors

Signup and tool endpoints return `{"error": "<code>", "message": "<one sentence>"}`. The token endpoint, and a 401 from the tool endpoints, return OAuth's `error` and `error_description` instead.

| Status | Codes | What to do |
| - | - | - |
| 400 | `invalid_request`, `invalid_email`, `invalid_code`, `invalid_input` | Fix the request. `invalid_input` lists each problem in `issues`. |
| 400 | `wrong_code` | Ask the person for the code again. `tries_left` says how many tries remain. |
| 401 | `invalid_token` | The access token is missing, invalid or expired, or the account or agent is no longer accepted. `error_description` says which. Refresh the token once, and if the 401 comes back, relay `error_description` to the person. |
| 403 | `agent_not_allowed`, `account_unavailable` | Tsenta doesn't accept this agent name, or the account is deleted, suspended or refused. |
| 404 | `unknown_tool` | List the tools with `GET /api/v1/agent/tools`. |
| 409 | `email_conflict` | The person signs in once on the Tsenta website, as the message says, then you start again. |
| 410 | `code_expired` | The code expired, was replaced or used all 5 tries. Start again. |
| 413 | `body_too_large` | Send a smaller tool input. |
| 422 | `signup_refused`, `tool_error` | Tsenta refused the signup, or the tool refused or failed. Relay `message`. |
| 423 | `paused` | Too many wrong codes for this email. Wait before trying again. |
| 429 | `rate_limited` | Wait for the number of seconds in `retry_after` or `Retry-After`. |
| 502, 503 | `send_failed`, `unavailable` | Try again shortly. |

A successful response can still report a problem in `result`. For example, each `apply-to-job` result has `success` and a `message` such as "already applied to this job".


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.