{"openapi":"3.1.0","info":{"title":"Spyglass API","version":"1.0.0"},"paths":{"/brands":{"post":{"operationId":"searchBrands","summary":"Brands","description":"Find brands.\nFilter by taxonomy, location, or followers.\n\nLeave the search fields empty to list by `sortBy` (default `MOST_FOLLOWERS`).\nOr pass one of:\n\n- `query` — semantic search. Ordered by relevance, so `sortBy` is ignored.\n  Bills at least one row even when nothing matches.\n- `names` — name contains this text.\n- `ids` — UUID, handle, domain, or Ad Library id. Misses are in\n  `unmatchedIds`. Ignores `limit` and `offset`.\n- `igUsername` or `tiktokUsername` — handle contains this text. A leading\n  `@` is ignored.\n\nWhen more than one is set:\n\n`ids` > `igUsername` / `tiktokUsername` > `names` > `query`\n\n`names` + `query` uses both.\n\n`limit` is 20 by default, 100 max, and caps the charge except for `ids`.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per brand returned, charged against your plan's monthly credits. The count field is what you were charged for.","responses":{"200":{"description":"Matching brands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/searchBrands_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body exceeds the 100 KB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"$ref":"#/components/schemas/BrandsPostRequestBodyContentApplicationJsonSchemaIdsItems"}},"names":{"type":"array","items":{"type":"string","minLength":2,"maxLength":300}},"igUsername":{"type":"string","minLength":1,"maxLength":100},"tiktokUsername":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","maxLength":500},"location":{"type":"string","minLength":1,"maxLength":200},"minFollowers":{"type":"integer","minimum":0,"maximum":2147483647},"maxFollowers":{"type":"integer","minimum":0,"maximum":2147483647},"sortBy":{"$ref":"#/components/schemas/BrandsPostRequestBodyContentApplicationJsonSchemaSortBy"},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":100},"minViews":{"type":"integer","minimum":0,"maximum":2147483647},"maxViews":{"type":"integer","minimum":0,"maximum":2147483647},"minEngagement":{"type":"number","format":"double","minimum":0,"maximum":1},"maxEngagement":{"type":"number","format":"double","minimum":0,"maximum":1},"minActiveAds":{"type":"integer","minimum":0,"maximum":2147483647},"maxActiveAds":{"type":"integer","minimum":0,"maximum":2147483647},"taxonomy":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"language":{"$ref":"#/components/schemas/BrandsPostRequestBodyContentApplicationJsonSchemaLanguage"}}}}}},"security":[{"bearerAuth":[]}]}},"/creators":{"post":{"operationId":"searchCreators","summary":"Creators","description":"Find creators.\nFilter by category, audience, location, or followers.\n\nLeave the search fields empty to list by `sortBy` (default `MOST_FOLLOWERS`).\nOr pass one of:\n\n- `query` — semantic search. Ordered by relevance, so `sortBy` is ignored.\n  Bills at least one row even when nothing matches.\n- `names` — name contains this text.\n- `ids` — UUID, handle, domain, or Ad Library id. Misses are in\n  `unmatchedIds`. Ignores `limit` and `offset`.\n- `igUsername` or `tiktokUsername` — handle contains this text. A leading\n  `@` is ignored.\n\nWhen more than one is set:\n\n`ids` > `igUsername` / `tiktokUsername` > `names` > `query`\n\n`names` + `query` uses both.\n\n`limit` is 20 by default, 100 max, and caps the charge except for `ids`.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per creator returned, charged against your plan's monthly credits. The count field is what you were charged for.","responses":{"200":{"description":"Matching creators.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/searchCreators_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body exceeds the 100 KB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaIdsItems"}},"names":{"type":"array","items":{"type":"string","minLength":2,"maxLength":300}},"igUsername":{"type":"string","minLength":1,"maxLength":100},"tiktokUsername":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","maxLength":500},"location":{"type":"string"},"minFollowers":{"type":"integer","minimum":0,"maximum":2147483647},"maxFollowers":{"type":"integer","minimum":0,"maximum":2147483647},"sortBy":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaSortBy"},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":100},"minViews":{"type":"integer","minimum":0,"maximum":2147483647},"maxViews":{"type":"integer","minimum":0,"maximum":2147483647},"minEngagement":{"type":"number","format":"double","minimum":0,"maximum":1},"maxEngagement":{"type":"number","format":"double","minimum":0,"maximum":1},"minActiveAds":{"type":"integer","minimum":0,"maximum":2147483647},"maxActiveAds":{"type":"integer","minimum":0,"maximum":2147483647},"category":{"type":"array","items":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaCategoryItems"},"description":"Creator niche, such as Celebrity or Comedian. Matches any listed value."},"ethnicity":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaEthnicity"},"gender":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaGender"},"ageRange":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaAgeRange"},"language":{"$ref":"#/components/schemas/CreatorsPostRequestBodyContentApplicationJsonSchemaLanguage"}}}}}},"security":[{"bearerAuth":[]}]}},"/taxonomies":{"get":{"operationId":"searchTaxonomies","summary":"Taxonomies","description":"Find taxonomy paths you can pass to POST /media as `taxonomy`.\n`query` is a product or category phrase. Each path is a string\nsuch as `Apparel > Footwear > Sneakers`.\n\nLimited to 120 requests per minute per user.\nThis call is free and does not consume credits.","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Matching taxonomy paths.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/searchTaxonomies_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/media":{"post":{"operationId":"searchMedia","summary":"Media","description":"Return media posts. A call usually takes under 10 seconds.\n\n**1. Pick what to search**\n\n| You want | Send |\n| --- | --- |\n| All media | Send neither `accountId` nor `query` to list media across the index, ordered by `sortBy` |\n| One account's media | `accountId` |\n| Media matching a description | `query`, which matches posts by what they show or say |\n| One account's media matching a description | `accountId` and `query` |\n| A broader category | `taxonomy`, a path from GET /taxonomies |\n\n**2. Pick a sort order**\n\n`sortBy` defaults to `MOST_RECENT`. Some orders only work with certain channels:\n\n| `sortBy` | Allowed `channel` |\n| --- | --- |\n| `MOST_RECENT`, `OLDEST` | Any |\n| `MOST_IMPRESSIONS`, `LONGEST_RUN` | Exactly `META_AD` |\n| `MOST_VIEWS`, `MOST_LIKES`, `MOST_COMMENTS`, `HIGHEST_ENGAGEMENT`, `HIGHEST_OUTLIER` | Anything except `META_AD` |\n\n**3. Optionally add a transcript or caption**\n\nSend `includeTranscript: true` to get each video transcript.\nSend `includeCaption: true` to get each post caption.\nBoth default to false and do not change the price.\n\n**Cost and limits**\n\nCosts $0.0010 per creative returned, charged against your plan's monthly credits. The count field is what you were charged for.\nYou are always charged for at least one row. If nothing matches, `count` is 0 but you pay for one row.\nLimited to 120 requests per minute per user.","responses":{"200":{"description":"Matching creatives.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/searchMedia_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body exceeds the 100 KB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaAccountId","description":"Account id given as a string, uuid, or handle"},"query":{"type":"string","minLength":1,"maxLength":500},"channel":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaChannelItems"}},"format":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaFormatItems"}},"duration":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaDurationItems"}},"status":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaStatus"},"categories":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaCategoriesItems"}},"taxonomy":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"funnelStage":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaFunnelStageItems"}},"language":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaLanguageItems"}},"location":{"type":"array","items":{"type":"string"}},"datePreset":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaDatePreset"},"startDate":{"type":"string","format":"date","description":"Calendar date, YYYY-MM-DD."},"endDate":{"type":"string","format":"date","description":"Calendar date, YYYY-MM-DD."},"minDaysRun":{"type":"number","format":"double"},"maxDaysRun":{"type":"number","format":"double"},"minViewCount":{"type":"number","format":"double"},"maxViewCount":{"type":"number","format":"double"},"landingPage":{"type":"string","minLength":1},"landingPageMatch":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaLandingPageMatch"},"lowImpressions":{"type":"boolean"},"partnershipAd":{"type":"boolean"},"crossposted":{"type":"boolean"},"sortBy":{"$ref":"#/components/schemas/MediaPostRequestBodyContentApplicationJsonSchemaSortBy"},"includeTranscript":{"type":"boolean","default":false,"description":"Include each video transcript. Does not change the credit charge. Default false."},"includeCaption":{"type":"boolean","default":false,"description":"Include each post caption. Does not change the credit charge. Default false."},"limit":{"type":"integer","minimum":1,"maximum":2000,"default":100},"offset":{"type":"integer","minimum":0}}}}}},"security":[{"bearerAuth":[]}]}},"/comments":{"post":{"operationId":"getComments","summary":"Comments","description":"Return public comments for specific Instagram or TikTok posts.\nPass post URLs or the platform id. At least one of `instagramIds` or\n`tiktokIds` is required (max 20 each). `limit` is comment pages\nper post (default 1, max 20).\n\nInstagram accepts a shortcode or a post URL:\n\n- `C2xY9abcD1e`\n- `https://www.instagram.com/p/C2xY9abcD1e/`\n- `https://www.instagram.com/reel/C2xY9abcD1e/`\n\nTikTok accepts a video id or a post URL:\n\n- `7234567890123456789`\n- `https://www.tiktok.com/@nike/video/7234567890123456789`\n\nRecent posts may be scraped live; older posts with stored comments\nare served from cache.\n\nLimited to 20 requests per minute per user.\nCosts $0.0050 per successful page of comments returned, charged against your plan's monthly credits.\nEach comment page fetched live (`limit`, default 1) is one billed\nunit. Cached posts do not scrape and are not billed.","responses":{"200":{"description":"Comments grouped by post.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getComments_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body exceeds the 100 KB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"instagramIds":{"type":"array","items":{"type":"string"},"description":"Instagram post shortcodes or post URLs"},"tiktokIds":{"type":"array","items":{"type":"string"},"description":"TikTok video ids or post URLs"},"limit":{"type":"integer","minimum":1,"maximum":20,"description":"Comment pages to fetch per post. Default 1."}}}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}":{"get":{"operationId":"account_get","summary":"Get account","description":"Fetch a single brand or creator. `id` is any one of:\n\n- an account id (a UUID, or the numeric id from POST /brands or POST /creators)\n- a website URL or bare domain, such as `https://www.nike.com` or `nike.com`\n- an Instagram handle, such as `nike` or `@nike`\n- a TikTok handle, such as `nike` or `@nike`\n\nA website matches the account domain. A handle matches `igUsername` or\n`tiktokUsername`. When both match, the `igUsername` match is returned.\nEncode `/` and `?` in a URL. The `type` field tells you which\none you got: `BRAND` or `CREATOR`, and the creator-only fields\n(`gender`, `ageRange`, ...) are present only on `CREATOR`.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per account returned, charged against your plan's monthly credits.\nAn id that matches nothing returns 404 and is free.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_get_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/posts":{"get":{"operationId":"account_posts","summary":"Account posts","description":"Return one account's posts, fetched live. The account does not need to be indexed.\nA call usually takes 10–30 seconds and starts indexing the rest of the brand's posts.\nUse `POST /media` first when you already have an account id. See the Finding media guide.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per creative returned, charged against your plan's monthly credits. The count field is what you were charged for.\nThe call bills a minimum of one row even when nothing matches. In that\ncase `count` is 0 but you are charged for one row.\n\nSend exactly one identifier. The fields you can send depend on which\none you pick.\n\n**`igUsername`**\n\n| Field | Details |\n| --- | --- |\n| `igUsername` | Instagram handle. A leading `@` is ignored. |\n| `tagged` | Optional. `true` returns posts the account is tagged in. Omit it for the account's own posts. Cannot be combined with `postType=reels`. |\n| `postType` | Optional, Instagram only. `posts` (default) or `reels`. Cannot be combined with `tagged`. |\n| `includeTranscript` | Optional. `true` transcribes each video and returns `transcript`. Omit it or send `false` to skip transcription. The call takes longer. |\n| `limit` | Optional. Default 20, max 120. |\n| `sortBy` | Ignored. Posts are always most recent. |\n\n**`tiktokUsername`**\n\n| Field | Details |\n| --- | --- |\n| `tiktokUsername` | TikTok handle. A leading `@` is ignored. |\n| `includeTranscript` | Optional. `true` transcribes each video and returns `transcript`. Omit it or send `false` to skip transcription. The call takes longer. |\n| `sortBy` | Optional. `most_recent` (default) or `popular`. |\n| `limit` | Optional. Default 20, max 120. |\n\n**`facebookAdLibraryId`**\n\n| Field | Details |\n| --- | --- |\n| `facebookAdLibraryId` | Facebook Ad Library page id. |\n| `includeTranscript` | Optional. `true` transcribes each video and returns `transcript`. Omit it or send `false` to skip transcription. The call takes longer. |\n| `sortBy` | Optional. `most_recent` (default) or `most_impressions`. |\n| `limit` | Optional. Default 20, max 120. |","tags":["Account"],"parameters":[{"name":"igUsername","in":"query","description":"Instagram handle. Exactly one of igUsername, tiktokUsername, or facebookAdLibraryId. A leading @ is ignored. sortBy is ignored.","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"tiktokUsername","in":"query","description":"TikTok handle. Exactly one identifier. sortBy is optional: most_recent (default) or popular. A leading @ is ignored. Do not send tagged.","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"facebookAdLibraryId","in":"query","description":"Facebook Ad Library page id. Exactly one identifier. sortBy is optional: most_recent (default) or most_impressions. Do not send tagged.","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"tagged","in":"query","description":"Only with igUsername. true returns posts the account is tagged in. Omit for the account’s own posts.","required":false,"schema":{"$ref":"#/components/schemas/AccountPostsGetParametersTagged"}},{"name":"postType","in":"query","description":"Only with igUsername. posts (default) or reels. Cannot be combined with tagged. Rejected for other identifiers.","required":false,"schema":{"$ref":"#/components/schemas/AccountPostsGetParametersPostType"}},{"name":"includeTranscript","in":"query","description":"true transcribes each video and returns transcript. Omit or false to skip transcription.","required":false,"schema":{"$ref":"#/components/schemas/AccountPostsGetParametersIncludeTranscript"}},{"name":"sortBy","in":"query","description":"Optional. With tiktokUsername: most_recent (default) or popular. With facebookAdLibraryId: most_recent (default) or most_impressions. Ignored with igUsername.","required":false,"schema":{"$ref":"#/components/schemas/AccountPostsGetParametersSortBy"}},{"name":"limit","in":"query","description":"Maximum posts to return. Default 20, max 120.","required":false,"schema":{"type":"integer","minimum":1,"maximum":120,"default":20}}],"responses":{"200":{"description":"Posts for the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_posts_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}/insights":{"get":{"operationId":"account_insights","summary":"Account insights","description":"Return creative insights for an account. `MEDIA_MIX` counts creatives by\nmedia type, `CATEGORY` by creative category, and `FUNNEL` by funnel\nstage. `HOOK`, `TARGET_PERSONA`, and `AD_ANGLE` return ranked totals\n(`id`, `label`, `tags`, `total`), highest first.\n\nIf a hook, angle, or persona clustering run is missing, older than 30\ndays, or has no clusters, clustering starts and the response includes\n`status: \"analyzing\"` with empty totals. Retry for the finished clusters.\nAnalyzing responses are not charged.\n\n`datePreset`, or `startDate` and `endDate` as `YYYY-MM-DD`, filter\nby creative start date. Omit both for the last 30 days.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per cluster returned, charged against your plan's monthly credits. The count field is what you were charged for.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AccountIdInsightsGetParametersType"}},{"name":"datePreset","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountIdInsightsGetParametersDatePreset"}},{"name":"startDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":100}}],"responses":{"200":{"description":"Creative insights for the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_insights_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}/campaigns":{"get":{"operationId":"account_campaigns","summary":"Account campaigns","description":"Return an account’s campaigns or offers, newest start date first.\n`datePreset`, or `startDate` and `endDate` as `YYYY-MM-DD`, filter\nby campaign start date. Omit both for all time.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per campaign returned, charged against your plan's monthly credits. The count field is what you were charged for.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AccountIdCampaignsGetParametersType"}},{"name":"sortBy","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountIdCampaignsGetParametersSortBy"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":10}},{"name":"datePreset","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountIdCampaignsGetParametersDatePreset"}},{"name":"startDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Campaigns or offers for the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_campaigns_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}/collabs":{"get":{"operationId":"account_collabs","summary":"Account collabs","description":"Return the creators an account has collaborated with, ordered from\nmost media to least. Works for both brands and creators.\nmediaCount is how many of that account’s media items tag the\ncreator. startedAt is the earliest of those media start times, and\nlastPostedAt is the latest. `datePreset`, or `startDate` and\n`endDate` as `YYYY-MM-DD`, filter by startedAt. Omit both for all time.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per collab returned, charged against your plan's monthly credits. The count field is what you were charged for.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"datePreset","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountIdCollabsGetParametersDatePreset"}},{"name":"startDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"Calendar date, YYYY-MM-DD.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Creator collabs for the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_collabs_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}/landing-pages":{"get":{"operationId":"account_landingPages","summary":"Landing pages","description":"Return the landing-page URLs an account sends ad traffic to, ranked by\nhow often they appear across its ads.\n\nLimited to 120 requests per minute per user.\nCosts $0.0010 per landing page returned, charged against your plan's monthly credits. The count field is what you were charged for.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}},{"name":"showInactive","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountIdLandingPagesGetParametersShowInactive"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Landing pages for the account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_landingPages_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/account/index":{"post":{"operationId":"account_index","summary":"Index by URL","description":"Look up a brand by website URL, or start indexing it if we do not\nhave it yet. Pass a single `websiteUrl`. Instagram and TikTok\nprofile URLs are accepted and resolved as creators.\n\nAn existing brand returns\n`status: \"already_exists\"`. A new brand is created and sync is\nqueued, returning `status: \"indexing\"` and the new `brandId`.\n\nLimited to 50 requests per minute per user.\nThis call is free and does not consume credits.","tags":["Account"],"responses":{"200":{"description":"The brand id and whether indexing was started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_index_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body exceeds the 100 KB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"websiteUrl":{"type":"string","minLength":1,"maxLength":2048}},"required":["websiteUrl"]}}}},"security":[{"bearerAuth":[]}]}},"/account/{id}/index-status":{"get":{"operationId":"account_indexStatus","summary":"Index status","description":"Poll whether a brand finished indexing after POST /account/index.\n\nLimited to 300 requests per minute per user.\nThis call is free and does not consume credits.","tags":["Account"],"parameters":[{"name":"id","in":"path","description":"Any one of: an account id, a website, an Instagram handle, or a TikTok handle. An id is a UUID or the numeric id from POST /brands or POST /creators. A website may be a full URL or a bare domain. A handle may start with @. Encode `/` and `?` when the value is a URL.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Whether the brand is still indexing or ready.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_indexStatus_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No brand matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/agent/runs":{"post":{"operationId":"agent_createAgentRun","summary":"Create a run","description":"Start a Spyglass agent run. The run id is the chat thread id.\nPass `outputSchema` to get that JSON on `structured` when the run completes.\nThe root `type` must be `\"object\"`. Each property can be a string, number, integer, boolean, array, or object.\n`model` is `default` or `pro`.\nPoll GET /agent/runs/{id} until `status` is `completed` or `failed`.\n\nLimited to 20 requests per minute per user.\nThe create call is free. The run is billed from model usage when it finishes.","tags":["agent"],"responses":{"200":{"description":"The queued run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_createAgentRun_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":8000},"outputSchema":{"$ref":"#/components/schemas/AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchema","description":"JSON Schema for `structured`. The root `type` must be `\"object\"`. Each property can be a string, number, integer, boolean, array, or object."},"systemPrompt":{"type":"string","minLength":1,"maxLength":8000},"effort":{"$ref":"#/components/schemas/AgentRunsPostRequestBodyContentApplicationJsonSchemaEffort","default":"medium"},"model":{"$ref":"#/components/schemas/AgentRunsPostRequestBodyContentApplicationJsonSchemaModel","default":"default"}},"required":["query"]}}}},"security":[{"bearerAuth":[]}]},"get":{"operationId":"agent_listAgentRuns","summary":"List runs","description":"Lists runs for this team, newest first.\nPage with `offset`. The next page is `offset` plus the `limit` you sent.\n`count` is the number of runs in this response. Stop when `count` is less than `limit`.\n\nLimited to 120 requests per minute per user.\nThis call is free and does not consume credits.","tags":["agent"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Recent runs for this team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_listAgentRuns_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/agent/runs/{id}":{"get":{"operationId":"agent_getAgentRun","summary":"Get a run","description":"Poll a run until `status` is `completed` or `failed`.\nCompleted runs include `text` and, when you passed a schema, `structured`.\nFailed runs include `error` with a `code` and `message`.\n\nLimited to 120 requests per minute per user.","tags":["agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent_getAgentRun_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No run matches that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}},"/team/credit-usage":{"get":{"operationId":"getCreditUsage","summary":"Credit usage","description":"Credits left on the API key's team, the credits included in the\nplan, and the current billing period. Granted credits count toward\n`remainingCredits` and not `planCredits`.\n\nLimited to 60 requests per minute per user.\nThis call is free and does not consume credits. It still responds when\nthe team is out of credits.","responses":{"200":{"description":"Credit balance for the current billing period.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/getCreditUsage_Response_200"}}}},"400":{"description":"The request body or query string failed validation. `details` lists the offending fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, malformed, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The team's monthly credits are exhausted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The team's subscription is inactive, or your membership of it has ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"The HTTP method is not supported on this path. The Allow header lists what is. HEAD is refused on metered GET endpoints because it would be billed without returning data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this user on this endpoint. Carries a Retry-After header. The per-minute limit is stated on the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"bearerAuth":[]}]}}},"tags":[{"name":"Account","description":"Lookup, creative insights, campaigns, landing pages, and indexing for a brand or creator."},{"name":"agent","description":"Start a Spyglass agent run, poll it, and read its events."}],"servers":[{"url":"https://api.spyglass.so/v2","description":"https://api.spyglass.so/v2"}],"components":{"schemas":{"BrandsPostRequestBodyContentApplicationJsonSchemaIdsItems":{"oneOf":[{"type":"string","maxLength":200},{"type":"number","format":"double"}],"description":"Account id given as a string, uuid, or handle","title":"BrandsPostRequestBodyContentApplicationJsonSchemaIdsItems"},"BrandsPostRequestBodyContentApplicationJsonSchemaSortBy":{"type":"string","enum":["NAME","MOST_FOLLOWERS","LEAST_FOLLOWERS","MOST_VIEWS","HIGHEST_ENGAGEMENT","MOST_ACTIVE_ADS"],"title":"BrandsPostRequestBodyContentApplicationJsonSchemaSortBy"},"BrandsPostRequestBodyContentApplicationJsonSchemaLanguage":{"type":"string","enum":["English","Spanish","French","German","Italian","Portuguese","Russian","Chinese","Cantonese","Japanese","Korean","Arabic","Hindi","Dutch","Polish","Turkish","Vietnamese","Thai","Burmese","Khmer","Lao","Indonesian","Hebrew","Swedish","Norwegian","Danish","Finnish","Farsi","Fijian","Greek","Czech","Hungarian","Romanian","Ukrainian","Malay","Tagalog","Filipino","Bengali","Serbian","Croatian","Bulgarian","Slovak","Slovenian","Estonian","Latvian","Lithuanian","Persian","Swahili","Amharic","Assamese","Urdu","Afrikaans","Basque","Catalan","Icelandic","Georgian","Albanian","Armenian","Azerbaijani","Bosnian","Galician","Gujarati","Haitian Creole","Kannada","Kazakh","Kyrgyz","Latin","Macedonian","Malayalam","Marathi","Mizo","Montenegrin","Nepali","Sinhala","Tamil","Telugu","Tulu","Punjabi","Welsh","Irish","Maltese","Yoruba","Zulu","ASL","Asturian","Bambara","Belarusian","Bhojpuri","Bisaya","Bodo","Cebuano","Chechen","Cherokee","Chichewa","Coptic","Cornish","Dari","Dhivehi","Esperanto","Ewe","Faroese","Frisian","Guarani","Hausa","Hawaiian","Hiligaynon","Hmong","Igbo","Ilocano","Jamaican Patois","Javanese","Kashmiri","Kikuyu","Kinyarwanda","Konkani","Kurdish","Lingala","Luxembourgish","Luganda","Malagasy","Manipuri","Maori","Mongolian","Nigerian Pidgin","Nyanja","Odia","Oromo","Papiamento","Pashto","Quechua","Samoan","Sanskrit","Scottish Gaelic","Sepedi","Shona","Sindhi","Somali","Sotho","Sundanese","Tajik","Tamazight","Tetum","Tibetan","Tongan","Tsonga","Tswana","Twi","Uzbek","Wolof","Xhosa","Khasi"],"title":"BrandsPostRequestBodyContentApplicationJsonSchemaLanguage"},"BrandsPostResponsesContentApplicationJsonSchemaBrandsItems":{"type":"object","properties":{"type":{"type":"string","enum":["BRAND"]},"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"summary":{"type":["string","null"]},"bio":{"type":["string","null"]},"category":{"type":["string","null"]},"location":{"type":["string","null"]},"language":{"type":["string","null"]},"verified":{"type":"boolean"},"facebookUsername":{"type":["string","null"]},"likes":{"type":["number","null"],"format":"double"},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"igEngagementRate":{"type":["number","null"],"format":"double"},"igMedianViews":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"tiktokMedianViews":{"type":["number","null"],"format":"double"},"activeAdCount":{"type":["number","null"],"format":"double"},"thumbnailUrl":{"type":["string","null"]}},"required":["type","id","facebookAdLibraryId","name","summary","bio","category","location","language","verified","facebookUsername","likes","igUsername","igFollowers","igEngagementRate","igMedianViews","tiktokUsername","tiktokFollowers","tiktokMedianViews","activeAdCount","thumbnailUrl"],"title":"BrandsPostResponsesContentApplicationJsonSchemaBrandsItems"},"searchBrands_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"brands":{"type":"array","items":{"$ref":"#/components/schemas/BrandsPostResponsesContentApplicationJsonSchemaBrandsItems"}},"unmatchedIds":{"type":"array","items":{"type":"string"}}},"required":["count","brands"],"title":"searchBrands_Response_200"},"ErrorErrorCode":{"type":"string","enum":["invalid_request","invalid_api_key","payload_too_large","out_of_credits","membership_ended","subscription_inactive","brand_not_found","not_found","method_not_allowed","rate_limited","not_implemented","internal_error"],"title":"ErrorErrorCode"},"ErrorErrorDetailsItems":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"title":"ErrorErrorDetailsItems"},"ErrorError":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorErrorCode"},"message":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorErrorDetailsItems"}}},"required":["code","message"],"title":"ErrorError"},"Error":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/ErrorError"}},"required":["error"],"title":"Error"},"CreatorsPostRequestBodyContentApplicationJsonSchemaIdsItems":{"oneOf":[{"type":"string","maxLength":200},{"type":"number","format":"double"}],"description":"Account id given as a string, uuid, or handle","title":"CreatorsPostRequestBodyContentApplicationJsonSchemaIdsItems"},"CreatorsPostRequestBodyContentApplicationJsonSchemaSortBy":{"type":"string","enum":["NAME","MOST_FOLLOWERS","LEAST_FOLLOWERS","MOST_VIEWS","HIGHEST_ENGAGEMENT","MOST_ACTIVE_ADS"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaSortBy"},"CreatorsPostRequestBodyContentApplicationJsonSchemaCategoryItems":{"type":"string","enum":["Doctor","Nurse","Dentist","Therapist","Mental Health Creator","Nutritionist","Wellness Creator","Fitness Creator","Athlete","Yoga / Pilates Creator","Weight Loss Creator","Biohacker","Celebrity","Beauty Creator","Skincare Creator","K-Beauty Creator","Makeup Creator","Hair Creator","Fashion Creator","Food Creator","Chef","Beverage Creator","Restaurant Reviewer","Parenting Creator","Family Creator","Pregnancy Creator","Lawyer","Financial Creator","Accountant","Real Estate Creator","Recruiter","Career Creator","Entrepreneur","Sales Creator","Marketing Creator","Tech Creator","Developer","Startup Creator","Designer","Home Creator","DIY Creator","Gardening Creator","Teacher","Educational Creator","Science Creator","Language Creator","Comedian","Gaming Creator","Streamer","Music Creator","Artist","Photographer/Videographer","Filmmaker","Pop Culture Creator","Travel Creator","Lifestyle Creator","Digital Nomad","Self Improvement Creator","Relationship Creator","Faith Creator","Car Creator","Pet Creator","Outdoor Creator","Hunting Creator","Gun Creator","Collector","Product Reviewer","Deal Creator","Shopper Creator"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaCategoryItems"},"CreatorsPostRequestBodyContentApplicationJsonSchemaEthnicity":{"type":"string","enum":["White","Black","Asian","Hispanic","Middle Eastern","Indigenous","Pacific Islander"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaEthnicity"},"CreatorsPostRequestBodyContentApplicationJsonSchemaGender":{"type":"string","enum":["male","female","other"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaGender"},"CreatorsPostRequestBodyContentApplicationJsonSchemaAgeRange":{"type":"string","enum":["0-18","18-24","25-34","35-44","45-54","55-64","65+"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaAgeRange"},"CreatorsPostRequestBodyContentApplicationJsonSchemaLanguage":{"type":"string","enum":["English","Spanish","French","German","Italian","Portuguese","Russian","Chinese","Cantonese","Japanese","Korean","Arabic","Hindi","Dutch","Polish","Turkish","Vietnamese","Thai","Burmese","Khmer","Lao","Indonesian","Hebrew","Swedish","Norwegian","Danish","Finnish","Farsi","Fijian","Greek","Czech","Hungarian","Romanian","Ukrainian","Malay","Tagalog","Filipino","Bengali","Serbian","Croatian","Bulgarian","Slovak","Slovenian","Estonian","Latvian","Lithuanian","Persian","Swahili","Amharic","Assamese","Urdu","Afrikaans","Basque","Catalan","Icelandic","Georgian","Albanian","Armenian","Azerbaijani","Bosnian","Galician","Gujarati","Haitian Creole","Kannada","Kazakh","Kyrgyz","Latin","Macedonian","Malayalam","Marathi","Mizo","Montenegrin","Nepali","Sinhala","Tamil","Telugu","Tulu","Punjabi","Welsh","Irish","Maltese","Yoruba","Zulu","ASL","Asturian","Bambara","Belarusian","Bhojpuri","Bisaya","Bodo","Cebuano","Chechen","Cherokee","Chichewa","Coptic","Cornish","Dari","Dhivehi","Esperanto","Ewe","Faroese","Frisian","Guarani","Hausa","Hawaiian","Hiligaynon","Hmong","Igbo","Ilocano","Jamaican Patois","Javanese","Kashmiri","Kikuyu","Kinyarwanda","Konkani","Kurdish","Lingala","Luxembourgish","Luganda","Malagasy","Manipuri","Maori","Mongolian","Nigerian Pidgin","Nyanja","Odia","Oromo","Papiamento","Pashto","Quechua","Samoan","Sanskrit","Scottish Gaelic","Sepedi","Shona","Sindhi","Somali","Sotho","Sundanese","Tajik","Tamazight","Tetum","Tibetan","Tongan","Tsonga","Tswana","Twi","Uzbek","Wolof","Xhosa","Khasi"],"title":"CreatorsPostRequestBodyContentApplicationJsonSchemaLanguage"},"CreatorsPostResponsesContentApplicationJsonSchemaCreatorsItems":{"type":"object","properties":{"type":{"type":"string","enum":["CREATOR"]},"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"summary":{"type":["string","null"]},"bio":{"type":["string","null"]},"category":{"type":["string","null"]},"verified":{"type":"boolean"},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"igEngagementRate":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"tiktokEngagementRate":{"type":["number","null"],"format":"double"},"thumbnailUrl":{"type":["string","null"]},"location":{"type":["string","null"]},"language":{"type":["string","null"]},"ethnicity":{"type":["string","null"]},"gender":{"type":["string","null"]},"ageRange":{"type":["string","null"]}},"required":["type","id","facebookAdLibraryId","name","summary","bio","category","verified","igUsername","igFollowers","igEngagementRate","tiktokUsername","tiktokFollowers","tiktokEngagementRate","thumbnailUrl","location","language","ethnicity","gender","ageRange"],"title":"CreatorsPostResponsesContentApplicationJsonSchemaCreatorsItems"},"searchCreators_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"creators":{"type":"array","items":{"$ref":"#/components/schemas/CreatorsPostResponsesContentApplicationJsonSchemaCreatorsItems"}},"unmatchedIds":{"type":"array","items":{"type":"string"}}},"required":["count","creators"],"title":"searchCreators_Response_200"},"searchTaxonomies_Response_200":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string"}},"count":{"type":"integer"}},"required":["paths","count"],"title":"searchTaxonomies_Response_200"},"MediaPostRequestBodyContentApplicationJsonSchemaAccountId":{"oneOf":[{"type":"string","maxLength":200},{"type":"number","format":"double"}],"description":"Account id given as a string, uuid, or handle","title":"MediaPostRequestBodyContentApplicationJsonSchemaAccountId"},"MediaPostRequestBodyContentApplicationJsonSchemaChannelItems":{"type":"string","enum":["META_AD","INSTAGRAM","TIKTOK","GOOGLE_AD"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaChannelItems"},"MediaPostRequestBodyContentApplicationJsonSchemaFormatItems":{"type":"string","enum":["DPA","VIDEO","CAROUSEL","IMAGE","DCO"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaFormatItems"},"MediaPostRequestBodyContentApplicationJsonSchemaDurationItems":{"type":"string","enum":["0-10","10-30","30-60","60+"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaDurationItems"},"MediaPostRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["ACTIVE","INACTIVE","ALL"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaStatus"},"MediaPostRequestBodyContentApplicationJsonSchemaCategoriesItems":{"type":"string","enum":["Announcement","Before and After","Brand Story","Case Study","Comparison","Discount or Offer","Explainer","Founder Story","Interface","Meme","Negative Review","Press","Product Showcase","Quiz","Quote","Social Proof","Testimonial","Fake Interface","Listicle","Interview","Unboxing","GRWM","Day in the life","Storytime","Skit","Reply","Text Overlay","Greenscreen","POV","Try-on / Haul"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaCategoriesItems"},"MediaPostRequestBodyContentApplicationJsonSchemaFunnelStageItems":{"type":"string","enum":["UNAWARE","PROBLEM_AWARE","SOLUTION_AWARE","PRODUCT_AWARE","MOST_AWARE"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaFunnelStageItems"},"MediaPostRequestBodyContentApplicationJsonSchemaLanguageItems":{"type":"string","enum":["English","Spanish","French","German","Italian","Portuguese","Russian","Chinese","Cantonese","Japanese","Korean","Arabic","Hindi","Dutch","Polish","Turkish","Vietnamese","Thai","Burmese","Khmer","Lao","Indonesian","Hebrew","Swedish","Norwegian","Danish","Finnish","Farsi","Fijian","Greek","Czech","Hungarian","Romanian","Ukrainian","Malay","Tagalog","Filipino","Bengali","Serbian","Croatian","Bulgarian","Slovak","Slovenian","Estonian","Latvian","Lithuanian","Persian","Swahili","Amharic","Assamese","Urdu","Afrikaans","Basque","Catalan","Icelandic","Georgian","Albanian","Armenian","Azerbaijani","Bosnian","Galician","Gujarati","Haitian Creole","Kannada","Kazakh","Kyrgyz","Latin","Macedonian","Malayalam","Marathi","Mizo","Montenegrin","Nepali","Sinhala","Tamil","Telugu","Tulu","Punjabi","Welsh","Irish","Maltese","Yoruba","Zulu","ASL","Asturian","Bambara","Belarusian","Bhojpuri","Bisaya","Bodo","Cebuano","Chechen","Cherokee","Chichewa","Coptic","Cornish","Dari","Dhivehi","Esperanto","Ewe","Faroese","Frisian","Guarani","Hausa","Hawaiian","Hiligaynon","Hmong","Igbo","Ilocano","Jamaican Patois","Javanese","Kashmiri","Kikuyu","Kinyarwanda","Konkani","Kurdish","Lingala","Luxembourgish","Luganda","Malagasy","Manipuri","Maori","Mongolian","Nigerian Pidgin","Nyanja","Odia","Oromo","Papiamento","Pashto","Quechua","Samoan","Sanskrit","Scottish Gaelic","Sepedi","Shona","Sindhi","Somali","Sotho","Sundanese","Tajik","Tamazight","Tetum","Tibetan","Tongan","Tsonga","Tswana","Twi","Uzbek","Wolof","Xhosa","Khasi"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaLanguageItems"},"MediaPostRequestBodyContentApplicationJsonSchemaDatePreset":{"type":"string","enum":["today","yesterday","last-3-days","last-7-days","this-week","last-week","last-14-days","last-30-days","this-month","last-month","last-3-months","last-6-months","year-to-date","last-year"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaDatePreset"},"MediaPostRequestBodyContentApplicationJsonSchemaLandingPageMatch":{"type":"string","enum":["contains","equals"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaLandingPageMatch"},"MediaPostRequestBodyContentApplicationJsonSchemaSortBy":{"type":"string","enum":["MOST_RECENT","OLDEST","LONGEST_RUN","MOST_IMPRESSIONS","MOST_LIKES","MOST_COMMENTS","MOST_VIEWS","HIGHEST_ENGAGEMENT","HIGHEST_OUTLIER"],"title":"MediaPostRequestBodyContentApplicationJsonSchemaSortBy"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrandType":{"type":"string","enum":["BRAND","CREATOR"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrandType"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrand":{"type":"object","properties":{"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"type":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrandType"},{"type":"null"}]},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"facebookUsername":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"category":{"type":["string","null"]}},"required":["id","name","type","thumbnailUrl","category"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrand"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsPlacementItems":{"type":"string","enum":["FACEBOOK","INSTAGRAM","AUDIENCE_NETWORK","MESSENGER","THREADS"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsPlacementItems"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsType":{"type":"string","enum":["DPA","VIDEO","CAROUSEL","IMAGE","DCO"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsType"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsMediaType":{"type":"string","enum":["VIDEO","IMAGE"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsMediaType"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange":{"type":"string","enum":["0-18","18-24","25-34","35-44","45-54","55-64","65+"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender":{"type":"string","enum":["male","female","other"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity":{"type":"string","enum":["White","Black","Asian","Hispanic","Middle Eastern","Indigenous","Pacific Islander"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity"},"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter":{"type":"object","properties":{"ageRange":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange"},{"type":"null"}]},"gender":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender"},{"type":"null"}]},"ethnicity":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity"},{"type":"null"}]},"description":{"type":["string","null"]}},"required":["ageRange","gender","ethnicity","description"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter"},"MediaPostResponsesContentApplicationJsonSchemaMediaItems":{"type":"object","properties":{"id":{"type":"string"},"platformId":{"type":"string"},"brand":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsBrand"},{"type":"null"}]},"title":{"type":["string","null"],"description":"Landing page headline. For organic posts, the post title."},"cta":{"type":["string","null"],"description":"Call to action, such as Shop now or Learn more."},"landingPageUrl":{"type":["string","null"],"description":"Landing page link for a Meta ad. Null for Instagram and TikTok posts."},"placement":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsPlacementItems"},"description":"Where a Meta ad was shown, such as FACEBOOK, INSTAGRAM, or AUDIENCE_NETWORK. Present only on Meta ads."},"type":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsType"},{"type":"null"}]},"mediaType":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsMediaType"},{"type":"null"}]},"url":{"type":["string","null"]},"urls":{"type":"array","items":{"type":"string"}},"thumbnailUrl":{"type":["string","null"]},"width":{"type":["number","null"],"format":"double"},"height":{"type":["number","null"],"format":"double"},"durationInSeconds":{"type":["number","null"],"format":"double"},"platforms":{"type":"array","items":{"type":"string"}},"hook":{"type":["string","null"]},"summary":{"type":["string","null"]},"coreAngle":{"type":["string","null"]},"targetPersona":{"type":["string","null"]},"painPoints":{"type":"array","items":{"type":"string"}},"sellingPoints":{"type":"array","items":{"type":"string"}},"ugcCharacter":{"oneOf":[{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter"},{"type":"null"}]},"startAt":{"type":["string","null"]},"endAt":{"type":["string","null"]},"daysRun":{"type":["number","null"],"format":"double"},"categories":{"type":"array","items":{"type":"string"}},"carouselCount":{"type":["number","null"],"format":"double"},"viewCount":{"type":["number","null"],"format":"double"},"likeCount":{"type":["number","null"],"format":"double"},"commentCount":{"type":["number","null"],"format":"double"},"impressionPercentile":{"type":["number","null"],"format":"double"},"impressionsText":{"type":["string","null"]},"transcript":{"type":["string","null"]},"caption":{"type":["string","null"]}},"required":["id","platformId","brand","title","cta","landingPageUrl","type","mediaType","url","urls","thumbnailUrl","width","height","durationInSeconds","platforms","hook","summary","coreAngle","targetPersona","ugcCharacter","startAt","endAt","daysRun","categories","carouselCount","viewCount","likeCount","commentCount","impressionPercentile","impressionsText"],"title":"MediaPostResponsesContentApplicationJsonSchemaMediaItems"},"searchMedia_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaPostResponsesContentApplicationJsonSchemaMediaItems"}}},"required":["count","media"],"title":"searchMedia_Response_200"},"CommentsPostResponsesContentApplicationJsonSchemaPostsItemsCommentsItems":{"type":"object","properties":{"platformId":{"type":"string"},"text":{"type":"string"},"likeCount":{"type":"number","format":"double"},"replyCount":{"type":["number","null"],"format":"double"},"publishedAt":{"type":"string"},"isPinned":{"type":["boolean","null"]},"username":{"type":"string"},"displayName":{"type":"string"},"isVerified":{"type":"boolean"},"avatarUrl":{"type":["string","null"]}},"required":["platformId","text","likeCount","replyCount","publishedAt","isPinned","username","displayName","isVerified","avatarUrl"],"title":"CommentsPostResponsesContentApplicationJsonSchemaPostsItemsCommentsItems"},"CommentsPostResponsesContentApplicationJsonSchemaPostsItems":{"type":"object","properties":{"platform":{"type":"string"},"platformPostId":{"type":"string"},"error":{"type":"string"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/CommentsPostResponsesContentApplicationJsonSchemaPostsItemsCommentsItems"}}},"required":["platform","platformPostId","comments"],"title":"CommentsPostResponsesContentApplicationJsonSchemaPostsItems"},"getComments_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"posts":{"type":"array","items":{"$ref":"#/components/schemas/CommentsPostResponsesContentApplicationJsonSchemaPostsItems"}}},"required":["count","posts"],"title":"getComments_Response_200"},"AccountGetResponse2000":{"type":"object","properties":{"type":{"type":"string","enum":["BRAND"]},"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"summary":{"type":["string","null"]},"bio":{"type":["string","null"]},"category":{"type":["string","null"]},"location":{"type":["string","null"]},"language":{"type":["string","null"]},"verified":{"type":"boolean"},"facebookUsername":{"type":["string","null"]},"likes":{"type":["number","null"],"format":"double"},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"igEngagementRate":{"type":["number","null"],"format":"double"},"igMedianViews":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"tiktokMedianViews":{"type":["number","null"],"format":"double"},"activeAdCount":{"type":["number","null"],"format":"double"},"thumbnailUrl":{"type":["string","null"]}},"required":["type","id","facebookAdLibraryId","name","summary","bio","category","location","language","verified","facebookUsername","likes","igUsername","igFollowers","igEngagementRate","igMedianViews","tiktokUsername","tiktokFollowers","tiktokMedianViews","activeAdCount","thumbnailUrl"],"title":"AccountGetResponse2000"},"AccountGetResponse2001":{"type":"object","properties":{"type":{"type":"string","enum":["CREATOR"]},"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"summary":{"type":["string","null"]},"bio":{"type":["string","null"]},"category":{"type":["string","null"]},"verified":{"type":"boolean"},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"igEngagementRate":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"tiktokEngagementRate":{"type":["number","null"],"format":"double"},"thumbnailUrl":{"type":["string","null"]},"location":{"type":["string","null"]},"language":{"type":["string","null"]},"ethnicity":{"type":["string","null"]},"gender":{"type":["string","null"]},"ageRange":{"type":["string","null"]}},"required":["type","id","facebookAdLibraryId","name","summary","bio","category","verified","igUsername","igFollowers","igEngagementRate","tiktokUsername","tiktokFollowers","tiktokEngagementRate","thumbnailUrl","location","language","ethnicity","gender","ageRange"],"title":"AccountGetResponse2001"},"account_get_Response_200":{"oneOf":[{"$ref":"#/components/schemas/AccountGetResponse2000"},{"$ref":"#/components/schemas/AccountGetResponse2001"}],"title":"account_get_Response_200"},"AccountPostsGetParametersTagged":{"type":"string","enum":["true","false"],"description":"Only with igUsername. true returns posts the account is tagged in. Omit for the account’s own posts.","title":"AccountPostsGetParametersTagged"},"AccountPostsGetParametersPostType":{"type":"string","enum":["posts","reels"],"description":"Only with igUsername. posts (default) or reels. Cannot be combined with tagged. Rejected for other identifiers.","title":"AccountPostsGetParametersPostType"},"AccountPostsGetParametersIncludeTranscript":{"type":"string","enum":["true","false"],"description":"true transcribes each video and returns transcript. Omit or false to skip transcription.","title":"AccountPostsGetParametersIncludeTranscript"},"AccountPostsGetParametersSortBy":{"type":"string","enum":["popular","most_impressions","most_recent"],"description":"Optional. With tiktokUsername: most_recent (default) or popular. With facebookAdLibraryId: most_recent (default) or most_impressions. Ignored with igUsername.","title":"AccountPostsGetParametersSortBy"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrandType":{"type":"string","enum":["BRAND","CREATOR"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrandType"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrand":{"type":"object","properties":{"id":{"type":"string"},"facebookAdLibraryId":{"type":["string","null"]},"name":{"type":"string"},"type":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrandType"},{"type":"null"}]},"igUsername":{"type":["string","null"]},"igFollowers":{"type":["number","null"],"format":"double"},"tiktokUsername":{"type":["string","null"]},"tiktokFollowers":{"type":["number","null"],"format":"double"},"facebookUsername":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"category":{"type":["string","null"]}},"required":["id","name","type","thumbnailUrl","category"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrand"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsPlacementItems":{"type":"string","enum":["FACEBOOK","INSTAGRAM","AUDIENCE_NETWORK","MESSENGER","THREADS"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsPlacementItems"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsType":{"type":"string","enum":["DPA","VIDEO","CAROUSEL","IMAGE","DCO"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsType"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsMediaType":{"type":"string","enum":["VIDEO","IMAGE"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsMediaType"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange":{"type":"string","enum":["0-18","18-24","25-34","35-44","45-54","55-64","65+"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender":{"type":"string","enum":["male","female","other"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity":{"type":"string","enum":["White","Black","Asian","Hispanic","Middle Eastern","Indigenous","Pacific Islander"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter":{"type":"object","properties":{"ageRange":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterAgeRange"},{"type":"null"}]},"gender":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterGender"},{"type":"null"}]},"ethnicity":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacterEthnicity"},{"type":"null"}]},"description":{"type":["string","null"]}},"required":["ageRange","gender","ethnicity","description"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter"},"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItems":{"type":"object","properties":{"id":{"type":"string"},"platformId":{"type":"string"},"brand":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsBrand"},{"type":"null"}]},"title":{"type":["string","null"],"description":"Landing page headline. For organic posts, the post title."},"cta":{"type":["string","null"],"description":"Call to action, such as Shop now or Learn more."},"landingPageUrl":{"type":["string","null"],"description":"Landing page link for a Meta ad. Null for Instagram and TikTok posts."},"placement":{"type":"array","items":{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsPlacementItems"},"description":"Where a Meta ad was shown, such as FACEBOOK, INSTAGRAM, or AUDIENCE_NETWORK. Present only on Meta ads."},"type":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsType"},{"type":"null"}]},"mediaType":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsMediaType"},{"type":"null"}]},"url":{"type":["string","null"]},"urls":{"type":"array","items":{"type":"string"}},"thumbnailUrl":{"type":["string","null"]},"width":{"type":["number","null"],"format":"double"},"height":{"type":["number","null"],"format":"double"},"durationInSeconds":{"type":["number","null"],"format":"double"},"platforms":{"type":"array","items":{"type":"string"}},"hook":{"type":["string","null"]},"summary":{"type":["string","null"]},"coreAngle":{"type":["string","null"]},"targetPersona":{"type":["string","null"]},"painPoints":{"type":"array","items":{"type":"string"}},"sellingPoints":{"type":"array","items":{"type":"string"}},"ugcCharacter":{"oneOf":[{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItemsUgcCharacter"},{"type":"null"}]},"startAt":{"type":["string","null"]},"endAt":{"type":["string","null"]},"daysRun":{"type":["number","null"],"format":"double"},"categories":{"type":"array","items":{"type":"string"}},"carouselCount":{"type":["number","null"],"format":"double"},"viewCount":{"type":["number","null"],"format":"double"},"likeCount":{"type":["number","null"],"format":"double"},"commentCount":{"type":["number","null"],"format":"double"},"impressionPercentile":{"type":["number","null"],"format":"double"},"impressionsText":{"type":["string","null"]},"transcript":{"type":["string","null"]},"caption":{"type":["string","null"]}},"required":["id","platformId","brand","title","cta","landingPageUrl","type","mediaType","url","urls","thumbnailUrl","width","height","durationInSeconds","platforms","hook","summary","coreAngle","targetPersona","ugcCharacter","startAt","endAt","daysRun","categories","carouselCount","viewCount","likeCount","commentCount","impressionPercentile","impressionsText"],"title":"AccountPostsGetResponsesContentApplicationJsonSchemaMediaItems"},"account_posts_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"media":{"type":"array","items":{"$ref":"#/components/schemas/AccountPostsGetResponsesContentApplicationJsonSchemaMediaItems"}}},"required":["count","media"],"title":"account_posts_Response_200"},"AccountIdInsightsGetParametersType":{"type":"string","enum":["HOOK","TARGET_PERSONA","AD_ANGLE","MEDIA_MIX","CATEGORY","FUNNEL"],"title":"AccountIdInsightsGetParametersType"},"AccountIdInsightsGetParametersDatePreset":{"type":"string","enum":["today","yesterday","last-3-days","last-7-days","this-week","last-week","last-14-days","last-30-days","this-month","last-month","last-3-months","last-6-months","year-to-date","last-year"],"title":"AccountIdInsightsGetParametersDatePreset"},"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0Type":{"type":"string","enum":["MEDIA_MIX","CATEGORY","FUNNEL"],"title":"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0Type"},"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0RowsItems":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"integer"}},"required":["type","count"],"title":"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0RowsItems"},"AccountInsightsResponse2000":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0Type"},"count":{"type":"integer"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf0RowsItems"}}},"required":["type","count","rows"],"title":"AccountInsightsResponse2000"},"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1Type":{"type":"string","enum":["HOOK","TARGET_PERSONA","AD_ANGLE"],"title":"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1Type"},"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1TotalsItems":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"tags":{"type":["array","null"],"items":{"type":"string"}},"total":{"type":"number","format":"double"}},"required":["id","label","tags","total"],"title":"AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1TotalsItems"},"AccountInsightsResponse2001":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1Type"},"status":{"type":"string","enum":["analyzing"]},"count":{"type":"integer"},"totals":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdInsightsGetResponsesContentApplicationJsonSchemaOneOf1TotalsItems"}}},"required":["type","count","totals"],"title":"AccountInsightsResponse2001"},"account_insights_Response_200":{"oneOf":[{"$ref":"#/components/schemas/AccountInsightsResponse2000"},{"$ref":"#/components/schemas/AccountInsightsResponse2001"}],"title":"account_insights_Response_200"},"AccountIdCampaignsGetParametersType":{"type":"string","enum":["CAMPAIGN","OFFER"],"title":"AccountIdCampaignsGetParametersType"},"AccountIdCampaignsGetParametersSortBy":{"type":"string","enum":["MOST_RECENT","HIGHEST_VELOCITY"],"title":"AccountIdCampaignsGetParametersSortBy"},"AccountIdCampaignsGetParametersDatePreset":{"type":"string","enum":["today","yesterday","last-3-days","last-7-days","this-week","last-week","last-14-days","last-30-days","this-month","last-month","last-3-months","last-6-months","year-to-date","last-year"],"title":"AccountIdCampaignsGetParametersDatePreset"},"AccountIdCampaignsGetResponsesContentApplicationJsonSchemaCampaignsItems":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"category":{"type":["string","null"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"velocityScore":{"type":["number","null"],"format":"double"},"startAt":{"type":"string"},"mediaCount":{"type":"number","format":"double"},"launches7d":{"type":"number","format":"double"}},"required":["id","type","category","title","summary","velocityScore","startAt","launches7d"],"title":"AccountIdCampaignsGetResponsesContentApplicationJsonSchemaCampaignsItems"},"account_campaigns_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdCampaignsGetResponsesContentApplicationJsonSchemaCampaignsItems"}}},"required":["count","campaigns"],"title":"account_campaigns_Response_200"},"AccountIdCollabsGetParametersDatePreset":{"type":"string","enum":["today","yesterday","last-3-days","last-7-days","this-week","last-week","last-14-days","last-30-days","this-month","last-month","last-3-months","last-6-months","year-to-date","last-year"],"title":"AccountIdCollabsGetParametersDatePreset"},"AccountIdCollabsGetResponsesContentApplicationJsonSchemaCollabsItems":{"type":"object","properties":{"name":{"type":"string"},"profileUrl":{"type":"string"},"mediaCount":{"type":"integer"},"startedAt":{"type":"string","description":"When the collab started: the earliest media start time."},"lastPostedAt":{"type":"string","description":"The latest media post time for this creator."}},"required":["name","profileUrl","mediaCount","startedAt","lastPostedAt"],"title":"AccountIdCollabsGetResponsesContentApplicationJsonSchemaCollabsItems"},"account_collabs_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"collabs":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdCollabsGetResponsesContentApplicationJsonSchemaCollabsItems"}}},"required":["count","collabs"],"title":"account_collabs_Response_200"},"AccountIdLandingPagesGetParametersShowInactive":{"type":"string","enum":["true","false"],"title":"AccountIdLandingPagesGetParametersShowInactive"},"AccountIdLandingPagesGetResponsesContentApplicationJsonSchemaLandingPagesItems":{"type":"object","properties":{"url":{"type":"string"},"total":{"type":"number","format":"double"}},"required":["url","total"],"title":"AccountIdLandingPagesGetResponsesContentApplicationJsonSchemaLandingPagesItems"},"account_landingPages_Response_200":{"type":"object","properties":{"count":{"type":"integer"},"landingPages":{"type":"array","items":{"$ref":"#/components/schemas/AccountIdLandingPagesGetResponsesContentApplicationJsonSchemaLandingPagesItems"}}},"required":["count","landingPages"],"title":"account_landingPages_Response_200"},"AccountIndexPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["already_exists","indexing"],"title":"AccountIndexPostResponsesContentApplicationJsonSchemaStatus"},"account_index_Response_200":{"type":"object","properties":{"brandId":{"type":"string"},"status":{"$ref":"#/components/schemas/AccountIndexPostResponsesContentApplicationJsonSchemaStatus"}},"required":["brandId","status"],"title":"account_index_Response_200"},"AccountIdIndexStatusGetResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["indexing","ready"],"title":"AccountIdIndexStatusGetResponsesContentApplicationJsonSchemaStatus"},"account_indexStatus_Response_200":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AccountIdIndexStatusGetResponsesContentApplicationJsonSchemaStatus"}},"required":["status"],"title":"account_indexStatus_Response_200"},"AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchemaType":{"type":"string","enum":["string","number","integer","boolean","array","object"],"title":"AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchemaType"},"AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchemaType"},"properties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchema"},"description":"Fields of the structured result."},"required":{"type":"array","items":{"type":"string"},"description":"Property names the result must include."}},"required":["type"],"description":"JSON Schema for `structured`. The root `type` must be `\"object\"`. Each property can be a string, number, integer, boolean, array, or object.","title":"AgentRunsPostRequestBodyContentApplicationJsonSchemaOutputSchema"},"AgentRunsPostRequestBodyContentApplicationJsonSchemaEffort":{"type":"string","enum":["none","minimal","low","medium","high","xhigh"],"default":"medium","title":"AgentRunsPostRequestBodyContentApplicationJsonSchemaEffort"},"AgentRunsPostRequestBodyContentApplicationJsonSchemaModel":{"type":"string","enum":["default","pro"],"default":"default","title":"AgentRunsPostRequestBodyContentApplicationJsonSchemaModel"},"AgentRunsPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["queued"],"title":"AgentRunsPostResponsesContentApplicationJsonSchemaStatus"},"Agent_createAgentRun_Response_200":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/AgentRunsPostResponsesContentApplicationJsonSchemaStatus"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","status","createdAt"],"title":"Agent_createAgentRun_Response_200"},"AgentRunsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{},"title":"AgentRunsGetResponsesContentApplicationJsonSchemaDataItems"},"Agent_listAgentRuns_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunsGetResponsesContentApplicationJsonSchemaDataItems"}},"count":{"type":"integer"}},"required":["data","count"],"title":"Agent_listAgentRuns_Response_200"},"Agent_getAgentRun_Response_200":{"type":"object","properties":{},"title":"Agent_getAgentRun_Response_200"},"getCreditUsage_Response_200":{"type":"object","properties":{"remainingCredits":{"type":"integer","description":"Credits left in this billing period, including granted credits."},"planCredits":{"type":"integer","description":"Credits included in the team's plan for this billing period."},"billingPeriodStart":{"type":["string","null"],"description":"Start of the current billing period, UTC. Null when no billing period exists."},"billingPeriodEnd":{"type":["string","null"],"description":"End of the current billing period, UTC. Null when no billing period exists."}},"required":["remainingCredits","planCredits","billingPeriodStart","billingPeriodEnd"],"title":"getCreditUsage_Response_200"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from Settings → API, prefixed sg_live_."}}}}