{"openapi":"3.0.0","paths":{"/v1/partners/metrics":{"get":{"description":"Reports referral attribution for users whose Torre signup is attributed to one of your channels. It includes their gross revenue and your revenue share, summarized by product, month, and channel.\n\nTwo channel types exist:\n\n- `referral-code`. Signups through your personal referral link.\n- `subtorre`. Signups originating from a subtorre you operate. Subtorre channels also carry an activity series for applications and new jobs.\n\nRevenue figures cover revenue from your attributed users across Torre OS, Torre Reach, and Torre Pro.\n\nEach response section accepts its own grouping and timeframe. `meta` states when the numbers were generated. It also marks each source as `live` or `degraded`. A degraded source was not fully read, so its numbers can be incomplete.\n\nPeople you create with `POST /people` are unclaimed profiles, not signups, so they do not appear in these metrics.\n\nThe current partner agreement must be accepted. Accept it in the [Partners dashboard](https://torre.ai/partners). Until then the endpoint returns `403` (`code: \"agreement-required\"`).","operationId":"getPartnerMetrics","parameters":[{"name":"productGrouping","required":false,"in":"query","description":"Bucket size for the product revenue series. Defaults to `monthly`.","schema":{"default":"monthly","type":"string","enum":["daily","weekly","monthly"]}},{"name":"productTimeframe","required":false,"in":"query","description":"Timeframe for the product revenue series. Defaults to `month-to-date`.","schema":{"default":"month-to-date","type":"string","enum":["month-to-date","year-to-date","last-3-days","last-60-days","last-90-days","last-100-days","last-month","last-3-months","last-6-months","last-year"]}},{"name":"referralGrouping","required":false,"in":"query","description":"Reserved. Validated (`invalid-grouping` on invalid values) but does not yet shape any series in the response. Defaults to `daily`.","schema":{"default":"daily","type":"string","enum":["daily","weekly","monthly"]}},{"name":"referralTimeframe","required":false,"in":"query","description":"Timeframe for the referral channel's figures. Defaults to `month-to-date`.","schema":{"default":"month-to-date","type":"string","enum":["month-to-date","year-to-date","last-3-days","last-60-days","last-90-days","last-100-days","last-month","last-3-months","last-6-months","last-year"]}},{"name":"subtorreGrouping","required":false,"in":"query","description":"Bucket size for the subtorre activity series. Defaults to `daily`.","schema":{"default":"daily","type":"string","enum":["daily","weekly","monthly"]}},{"name":"subtorreTimeframe","required":false,"in":"query","description":"Timeframe for the subtorre activity series. Defaults to `month-to-date`.","schema":{"default":"month-to-date","type":"string","enum":["month-to-date","year-to-date","last-3-days","last-60-days","last-90-days","last-100-days","last-month","last-3-months","last-6-months","last-year"]}}],"responses":{"200":{"description":"Your referral metrics.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralMetricsDto"}}}},"400":{"description":"A grouping or timeframe parameter has an invalid value. `code` is `invalid-grouping` or `invalid-timeframe`. Other invalid query parameters use `invalid-query`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAccessErrorDto"}}}},"401":{"description":"Missing or invalid partner credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"403":{"description":"The account is not an active partner (`code: \"no-partner\"`), or the current partner agreement has not been accepted (`code: \"agreement-required\"`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAccessErrorDto"}}}},"429":{"description":"The partner rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds until the request can be retried.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Maximum requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBadGatewayErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUnavailableErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTimeoutErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get your referral metrics","tags":["Referral metrics"]}},"/v1/partners/me":{"get":{"description":"Returns your partner identity, agreement status, referral link, and referral channels. This endpoint is also the simplest way to verify your credentials. `referralLink` and the referral-code channel appear after the current partner agreement is accepted. Accept the agreement in the [Partners dashboard](https://torre.ai/partners).","operationId":"getPartnerProfile","parameters":[],"responses":{"200":{"description":"Your partner profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProfileDto"}}}},"401":{"description":"Missing or invalid partner credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"403":{"description":"The account is not an active partner (`code: \"no-partner\"`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAccessErrorDto"}}}},"429":{"description":"The partner rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds until the request can be retried.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Maximum requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerBadGatewayErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUnavailableErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTimeoutErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get your partner profile","tags":["Partner account"]}},"/v1/people":{"post":{"description":"Creates a person on Torre from a resume file. Torre parses the resume with AI and builds the person's profile: name, headline, summary, location, experience, education, projects, certifications, awards, publications, languages, and skills.\n\nThe request is synchronous. The response arrives once the profile is created, which can take several seconds while the resume is parsed.\n\n### What gets created\n\nTorre creates an unclaimed community profile with no login and does not notify the person. When the person joins Torre, they claim the profile. The response carries the person's `ggId`. This identifier is stable across all of Torre.\n\n### File requirements\n\n- Formats: PDF, DOC, or DOCX. Torre detects the format from the content, so the part's filename and content type are informative only. Images and other formats return `400` (`details.error: \"parseError\"`).\n- Size: up to 20 MB.\n- Send the file as the only file part of a `multipart/form-data` body. Name the part `file`.\n- The resume must include an email address or phone number. Otherwise the request returns `400` (`details.error: \"emailAndPhoneMissing\"`).\n\n### Duplicates\n\nTorre matches the email address parsed from the resume against existing people:\n\n- `failOnDuplicate=true` (default): the request returns `400` (`details.error: \"duplicatedPerson\"`). When an earlier resume import created the existing profile, the call succeeds as an idempotent re-import with `201` and `personExists: true`.\n- `failOnDuplicate=false`: the response returns the existing person's identifiers with `201` and `personExists: true`. It does not import the resume or change the person.","operationId":"createPerson","parameters":[{"name":"source","required":false,"in":"query","description":"Attribution label recorded with the import for Torre's analytics. Use a stable, lowercase slug that identifies your integration (for example, your partner handle).","schema":{"example":"acme-talent","type":"string"}},{"name":"failOnDuplicate","required":false,"in":"query","description":"Controls a duplicate result. `true` rejects the request by default. `false` returns the existing identifiers without importing the resume.","schema":{"default":true,"type":"boolean"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The resume file: PDF, DOC, or DOCX, up to 20 MB."}}}}}},"responses":{"201":{"description":"The person was created, or already existed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonCreatedDto"}}}},"400":{"description":"The query is invalid, or the resume cannot be processed.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","enum":["invalid-query"]}}},{"$ref":"#/components/schemas/CreatePersonBadRequestErrorDto"}]}}}},"401":{"description":"Missing or invalid partner credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"403":{"description":"The token is not authorized for the Partners API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"409":{"description":"The resume yielded no importable data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonConflictErrorDto"}}}},"413":{"description":"The file exceeds the 20 MB limit."},"429":{"description":"The partner rate limit was exceeded.","headers":{"Retry-After":{"description":"Seconds until the request can be retried.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Maximum requests allowed in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAuthErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonBadGatewayErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonUnavailableErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonTimeoutErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a person from a resume","tags":["Create people"]}}},"info":{"title":"Torre Partners API","description":"The Torre Partners API lets Torre partners work with [Torre](https://torre.ai) programmatically:\n\n- Create people on Torre. Upload the resume of someone you work with. Torre creates their profile with their experience, education, languages, and skills already in place.\n- Track your referral activity through attributed users, gross revenue, and your revenue share, per channel and timeframe.\n- Check your partner account status, agreement, and referral link.\n\n## Who this API is for\n\nTorre's partner program is invitation-based. Partners are organizations that bring people to Torre. They can refer users through a personal referral link. They can operate a subtorre, which is a partner-operated Torre community. They can also deliver resumes for the people they work with. Use an opaque Torre API key created by a signed-in Torre user. The [Partners dashboard](https://torre.ai/partners) shows the same activity interactively.\n\n## Make your first request\n\nLoad your current key securely as `TORRE_API_KEY`, then check the partner account attached to it:\n\n```bash\ncurl https://api.torre.ai/v1/partners/me \\\n  -H \"Authorization: Bearer $TORRE_API_KEY\"\n```\n\nA `200` response means the partner account is available. `401` means the credential was not accepted. `403` with `no-partner` means the key was accepted but its owner is not an eligible partner. A personal API key does not enroll its owner in the partner program.\n\n## Creating people\n\n`POST /people` is the heart of this API. Send a resume file and Torre parses it with AI and creates the person's profile. A community-created profile is unclaimed, has no login, and does not notify the person. When the person joins Torre, they claim the profile and everything imported from the resume is already theirs.\n\nEvery created person gets a `ggId`. Use it to read their accessible public profile through the [Torre Recruiting API](/docs/reference/). It does not let you sign in as that person or request their personalized job matches.\n\nDuplicates are detected by the email address parsed from the resume. The `failOnDuplicate` query parameter picks what happens when the person already exists. It either rejects the request by default or returns the existing person's identifiers.\n\n## Referral metrics\n\n`GET /partners/metrics` reports users attributed to your referral link or subtorres. It also reports their gross revenue and your revenue share. Referral attribution happens at signup. People you create with `POST /people` are unclaimed profiles, not signups, so they are not counted as referral attribution.\n\n## Conventions\n\n- IDs. `ggId` is the canonical person identifier, shared across Torre's APIs. `id` and `publicId` are opaque secondary identifiers.\n- Errors. People-creation errors use a `{code, message, details}` envelope where `details.error` carries the machine-readable reason. Account and metrics business errors return `{code}`. Authentication, scope, and rate-limit errors return `{code, message}`.\n- Amounts are in US dollars.","version":"1.0.0","contact":{}},"tags":[{"name":"Create people","description":"Deliver the people you work with to Torre. Upload a resume and Torre parses it with AI. Torre creates a profile that includes the person's experience, education, languages, and skills."},{"name":"Referral metrics","description":"Read users whose signup is attributed to your referral link or subtorres, their gross revenue, and your revenue share."},{"name":"Partner account","description":"Read your partner identity, agreement status, referral link, and channels."}],"servers":[],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Use an opaque Torre API key created by a signed-in Torre user. Send it as `Authorization: Bearer <api-key>`."}},"schemas":{"ReferralMetricsSummaryDto":{"type":"object","properties":{"revenueShareUsd":{"type":"number","description":"Your revenue share, in USD.","example":1240.5},"grossRevenueUsd":{"type":"number","description":"Gross revenue generated by your attributed users, in USD.","example":6202.5},"attributedUsers":{"type":"integer","description":"Users whose signup is attributed to your channels.","example":312}},"required":["revenueShareUsd","grossRevenueUsd","attributedUsers"]},"ProductRevenueDto":{"type":"object","properties":{"product":{"type":"string","enum":["Torre OS","Torre Reach","Torre Pro"],"description":"The Torre product: Torre OS (the subscription), Torre Reach (job sponsorship), or Torre Pro."},"grossRevenueUsd":{"type":"number","description":"Gross revenue for this product from your attributed users, in USD."},"revenueShareUsd":{"type":"number","description":"Your revenue share for this product, in USD."},"attributedUsers":{"type":"integer","description":"This is the number of attributed users who generated revenue on this product."}},"required":["product","grossRevenueUsd","revenueShareUsd","attributedUsers"]},"MonthlyRevenueShareDto":{"type":"object","properties":{"bucket":{"type":"string","description":"The time bucket label.","example":"2026-06"},"product":{"type":"string","description":"The Torre product.","example":"Torre OS"},"revenueShareUsd":{"type":"number","description":"Your revenue share in this bucket, in USD."}},"required":["bucket","product","revenueShareUsd"]},"SubtorreActivityPointDto":{"type":"object","properties":{"period":{"type":"string","description":"The bucket label.","example":"2026-06-15"},"granularity":{"type":"string","enum":["daily","weekly","monthly"],"description":"The bucket size."},"pageviews":{"type":"integer","nullable":true,"description":"Pageviews in the bucket. Currently always `null`. Reserved for future use."},"applications":{"type":"integer","description":"Job applications in the bucket."},"newJobs":{"type":"integer","description":"Jobs added in the bucket."},"crawledJobs":{"type":"integer","description":"Jobs crawled in the bucket."},"torreOsRevenueShare":{"type":"number","description":"Your Torre OS revenue share in the bucket, in USD."},"torreReachRevenueShare":{"type":"number","description":"Your Torre Reach revenue share in the bucket, in USD."},"torreProRevenueShare":{"type":"number","description":"Your Torre Pro revenue share in the bucket, in USD."}},"required":["period","granularity","applications","newJobs","crawledJobs","torreOsRevenueShare","torreReachRevenueShare","torreProRevenueShare"]},"ReferralChannelMetricsDto":{"type":"object","properties":{"id":{"type":"string","description":"The channel identifier."},"type":{"type":"string","enum":["referral-code","subtorre"],"description":"The channel type."},"name":{"type":"string","description":"The channel's display name."},"handle":{"type":"string","description":"The handle identifies the channel."},"url":{"type":"string","format":"uri","description":"The URL opens the channel and is absent for channels without a public URL."},"attributedUsers":{"type":"integer","description":"Users whose signup is attributed to this channel."},"grossRevenueUsd":{"type":"number","description":"Gross revenue from this channel's attributed users, in USD."},"revenueShareUsd":{"type":"number","description":"Your revenue share from this channel, in USD."},"lastOpportunityAssignedLabel":{"type":"string","description":"Human-readable label for the channel's latest assigned job. Currently always `\"\"`. Reserved for future use.","example":""},"lastOpportunityAssignedAt":{"type":"string","format":"date-time","description":"When a job was last assigned to this channel. Currently always absent. Reserved for future use."},"visits":{"type":"integer","description":"Visits to the channel. Currently always `0`. Reserved for future use."},"views":{"type":"integer","description":"Views on the channel. Currently always `0`. Reserved for future use."},"newCandidates":{"type":"integer","description":"New candidates from the channel. Currently always `0`. Reserved for future use."},"newCompanies":{"type":"integer","description":"New companies from the channel. Currently always `0`. Reserved for future use."},"activity":{"description":"This activity series is available only for subtorre channels and uses the subtorre grouping.","type":"array","items":{"$ref":"#/components/schemas/SubtorreActivityPointDto"}}},"required":["id","type","name","handle","attributedUsers","grossRevenueUsd","revenueShareUsd","lastOpportunityAssignedLabel","visits","views","newCandidates","newCompanies"]},"ReferralSourceDto":{"type":"object","properties":{"referrerCode":{"type":"string","description":"The referral code the referral figures are keyed on."}},"required":["referrerCode"]},"ReferralMetricsSourcesDto":{"type":"object","properties":{"referral":{"$ref":"#/components/schemas/ReferralSourceDto"}},"required":["referral"]},"ReferralMetricsRevenueHealthDto":{"type":"object","properties":{"freshness":{"type":"string","enum":["live","degraded"],"description":"Whether revenue figures are live or degraded."},"unmappedUsd":{"type":"number","description":"Revenue, in USD, that cannot be mapped to a channel."},"unmappedHandles":{"description":"Handles whose revenue cannot be mapped.","type":"array","items":{"type":"string"}}},"required":["freshness","unmappedUsd","unmappedHandles"]},"ReferralMetricsSubtorresHealthDto":{"type":"object","properties":{"freshness":{"type":"string","enum":["live","degraded"],"description":"Whether subtorre figures are live or degraded."},"activityFreshness":{"type":"string","enum":["live","degraded"],"description":"Whether the subtorre activity series is live or degraded."}},"required":["freshness","activityFreshness"]},"ReferralMetricsAttributionDto":{"type":"object","properties":{"freshness":{"type":"string","enum":["live","degraded"],"description":"Whether attribution figures are live or degraded."},"skippedNoGgId":{"type":"integer","description":"Attribution records skipped for lacking a person identifier."},"skippedUnparseableId":{"type":"integer","description":"Attribution records skipped for an unparseable identifier."},"skippedNoGgIdReferral":{"type":"integer","description":"Referral records skipped for lacking a person identifier."},"skippedNoGgIdSignup":{"type":"integer","description":"Signup records skipped for lacking a person identifier."}},"required":["freshness","skippedNoGgId","skippedUnparseableId","skippedNoGgIdReferral","skippedNoGgIdSignup"]},"ReferralMetricsMetaDto":{"type":"object","properties":{"generatedAt":{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$","description":"When the metrics were generated."},"sources":{"description":"The inputs the metrics were computed from.","allOf":[{"$ref":"#/components/schemas/ReferralMetricsSourcesDto"}]},"revenue":{"$ref":"#/components/schemas/ReferralMetricsRevenueHealthDto"},"subtorres":{"$ref":"#/components/schemas/ReferralMetricsSubtorresHealthDto"},"attribution":{"$ref":"#/components/schemas/ReferralMetricsAttributionDto"}},"description":"Explains when the metrics were generated and whether each source is live or degraded.","required":["generatedAt","sources","revenue","subtorres","attribution"]},"ReferralMetricsDto":{"type":"object","properties":{"summary":{"description":"These totals cover all channels for the current month. Timeframe parameters do not affect them.","allOf":[{"$ref":"#/components/schemas/ReferralMetricsSummaryDto"}]},"products":{"description":"Revenue broken down by Torre product.","type":"array","items":{"$ref":"#/components/schemas/ProductRevenueDto"}},"monthlyRevenueShare":{"description":"Your revenue share over time, bucketed per the product grouping (the field is named for its default monthly bucketing).","type":"array","items":{"$ref":"#/components/schemas/MonthlyRevenueShareDto"}},"channels":{"description":"Referral-code and subtorre channels with per-channel figures.","type":"array","items":{"$ref":"#/components/schemas/ReferralChannelMetricsDto"}},"meta":{"$ref":"#/components/schemas/ReferralMetricsMetaDto"}},"description":"This response summarizes referral attribution by product, month, and channel.","required":["summary","products","monthlyRevenueShare","channels","meta"]},"PartnerAccessErrorDto":{"type":"object","properties":{"code":{"type":"string","description":"The machine-readable code is `no-partner`, `agreement-required`, `invalid-grouping`, or `invalid-timeframe`. Invalid or unknown query parameters use `invalid-query`. Transport failures use their own status-specific schemas.","example":"no-partner"}},"required":["code"]},"PartnerAuthErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","insufficient-scope","too-many-requests"],"description":"Machine-readable authentication, authorization, or rate-limit code.","example":"unauthorized"},"message":{"type":"string","description":"Human-readable explanation of the rejected request.","example":"Missing or invalid partner credentials."}},"required":["code","message"]},"PartnerBadGatewayErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["upstream-error"],"example":"upstream-error"}},"required":["code"]},"PartnerUnavailableErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["upstream-unavailable"],"example":"upstream-unavailable"}},"required":["code"]},"PartnerTimeoutErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["upstream-timeout"],"example":"upstream-timeout"}},"required":["code"]},"PartnerIdentityDto":{"type":"object","properties":{"ggId":{"type":"string","description":"The partner account's person identifier on Torre.","example":"0f8a3b2c1d4e5f60718293a4b5c6d7e8"},"displayName":{"type":"string","description":"The partner's display name.","example":"Acme Talent"},"active":{"type":"boolean","description":"Whether the partner is active."}},"required":["ggId","displayName","active"]},"PartnerAgreementDto":{"type":"object","properties":{"type":{"type":"string","description":"The agreement type identifier."},"accepted":{"type":"boolean","description":"Whether the current partner agreement is accepted."},"acceptedAt":{"type":"string","format":"date-time","description":"When the agreement was accepted. Absent until accepted."},"acceptedVersion":{"type":"string","description":"The accepted agreement version. Absent until accepted."},"currentVersion":{"type":"string","description":"The current agreement version."}},"required":["type","accepted","currentVersion"]},"PartnerChannelDto":{"type":"object","properties":{"id":{"type":"string","description":"The channel identifier."},"type":{"type":"string","enum":["referral-code","subtorre"],"description":"The channel type."},"name":{"type":"string","description":"The channel's display name.","example":"Personal referral code"},"handle":{"type":"string","description":"The handle identifies the channel. For a referral-code channel, it is the code itself."},"url":{"type":"string","format":"uri","description":"The URL opens the channel and is always present for the referral-code channel."}},"required":["id","type","name","handle","url"]},"PartnerProfileDto":{"type":"object","properties":{"partner":{"description":"Your partner identity.","allOf":[{"$ref":"#/components/schemas/PartnerIdentityDto"}]},"agreement":{"description":"The status of the partner agreement.","allOf":[{"$ref":"#/components/schemas/PartnerAgreementDto"}]},"referralLink":{"type":"string","format":"uri","description":"This referral link attributes signups to you. It is absent until the partner agreement is accepted."},"channels":{"description":"These are your referral channels. The response currently contains at most your referral-code channel. Subtorre channels appear in `GET /metrics`.","type":"array","items":{"$ref":"#/components/schemas/PartnerChannelDto"}}},"required":["partner","agreement","channels"]},"CreatePersonBadRequestDetailsDto":{"type":"object","properties":{"error":{"type":"string","enum":["duplicatedPerson","emailAndPhoneMissing","parseError","aiServiceError","unknown"],"description":"The reason is `duplicatedPerson`, `emailAndPhoneMissing`, `parseError`, `aiServiceError`, or `unknown`.","example":"duplicatedPerson"}},"required":["error"]},"CreatePersonBadRequestErrorDto":{"type":"object","properties":{"code":{"type":"string","description":"Opaque internal error code.","example":"012504"},"message":{"type":"string","description":"Human-readable summary.","example":"Unable to parse resume"},"details":{"description":"Machine-readable detail.","allOf":[{"$ref":"#/components/schemas/CreatePersonBadRequestDetailsDto"}]}},"required":["code","message","details"]},"PersonCreatedDto":{"type":"object","properties":{"id":{"type":"string","description":"Opaque person identifier. Prefer `ggId`.","example":"9Xw2Kd"},"publicId":{"type":"string","description":"Use this public profile identifier to open the profile at `torre.ai/{publicId}`.","example":"3f6b2a1e-8c4d-4e2a-9b7f-1a2b3c4d5e6f"},"ggId":{"type":"string","description":"The person's stable identifier across all of Torre, including the Torre Recruiting API.","example":"1a2b3c4d5e6f708192a3b4c5d6e7f809"},"personExists":{"type":"boolean","description":"`true` when a person with the resume’s email address already existed and their identifiers are returned instead of creating a new profile."}},"description":"This response identifies the created person, or the existing person when `personExists` is `true`.","required":["id","publicId","ggId","personExists"]},"CreatePersonConflictDetailsDto":{"type":"object","properties":{"error":{"type":"string","enum":["noNewData"],"example":"noNewData"}},"required":["error"]},"CreatePersonConflictErrorDto":{"type":"object","properties":{"code":{"type":"string","description":"Opaque internal error code.","example":"012504"},"message":{"type":"string","description":"Human-readable summary.","example":"Unable to parse resume"},"details":{"description":"Machine-readable detail.","allOf":[{"$ref":"#/components/schemas/CreatePersonConflictDetailsDto"}]}},"required":["code","message","details"]},"CreatePersonBadGatewayErrorDto":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable, sanitized failure summary."},"code":{"type":"string","enum":["upstream_error"],"example":"upstream_error"}},"required":["message","code"]},"CreatePersonUnavailableErrorDto":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable, sanitized failure summary."},"code":{"type":"string","enum":["upstream_unavailable"],"example":"upstream_unavailable"}},"required":["message","code"]},"CreatePersonTimeoutErrorDto":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable, sanitized failure summary."},"code":{"type":"string","enum":["upstream_timeout"],"example":"upstream_timeout"}},"required":["message","code"]}}}}