API documentationAPI reference

Partners quickstart

Create an API key while signed in to the account enrolled in Torre Partners. Load it securely as TORRE_PARTNER_API_KEY; do not paste the key into an agent prompt. The current API uses opaque keys, not the JWT credentials shown in older manuals.

1. Read the partner profile

curl https://api.torre.ai/v1/partners/me \
  -H "Authorization: Bearer $TORRE_PARTNER_API_KEY"

The response contains the partner ggId, agreement state, and channels. It can also contain a referral link.

If this returns 401, fix the credential before continuing. If it returns 403 no-partner, the key's owner must be registered and active as a partner; rotating the key alone will not fix it.

2. Create a person

curl -X POST "https://api.torre.ai/v1/people?failOnDuplicate=true" \
  -H "Authorization: Bearer $TORRE_PARTNER_API_KEY" \
  -F "file=@resume.pdf"

The file must be PDF, DOC, or DOCX and no larger than 20 MB.

The response includes the person's canonical ggId. The created profile is unclaimed, has no login, and does not notify the person.

Use that ggId as CANDIDATE_ID to read the accessible public profile without requesting a personal key from the candidate:

curl "https://api.torre.ai/v1/people/$CANDIDATE_ID" \
  -H "Authorization: Bearer $TORRE_PARTNER_API_KEY"

This does not give you delegated access to that person's personalized job matches.

3. Handle duplicates

failOnDuplicate=true is the default. A matching email can return details.error: "duplicatedPerson".

With failOnDuplicate=false, the API returns the existing identifiers and does not import the new resume into that profile.

An earlier resume-created profile can return 201 with personExists: true for an idempotent re-import.

4. Read referral metrics

curl https://api.torre.ai/v1/partners/metrics \
  -H "Authorization: Bearer $TORRE_PARTNER_API_KEY"

Accept the current partner agreement before this request.

403 agreement-required means that acceptance is missing. Complete it in the Partners dashboard, then request metrics again.

Resume-created profiles do not count as referral signups.