{"openapi":"3.1.0","info":{"title":"sample.cloud API","version":"2026-12-04"},"servers":[{"url":"https://api.sample.cloud"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"OAuth access token (sc_at_…) or personal access token (sc_pat_…), https://sample.cloud/docs/api/auth/"}},"schemas":{"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"version":{"type":"string"},"checks":{"type":"object","properties":{"database":{"type":"string","enum":["ok","error"]}},"required":["database"]}},"required":["status","version","checks"]},"PackList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Pack"}},"has_more":{"type":"boolean"},"next_offset":{"type":["number","null"],"description":"deprecated: use next_cursor"},"next_cursor":{"type":["string","null"],"description":"pass as cursor to get the next page"},"total":{"type":"number"},"facets":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"number"}},"description":"with include=facets: sounds per filter value"}},"required":["object","data","has_more","next_offset","next_cursor"]},"Pack":{"type":"object","properties":{"id":{"type":"string","example":"pck_01M8WJ70FEEBAVG5SEE3RMRWQV"},"object":{"type":"string","enum":["pack"]},"slug":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":["string","null"]},"description":{"type":["string","null"]},"pack_type":{"type":"string"},"status":{"type":"string"},"publisher":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},"cover":{"$ref":"#/components/schemas/Image"},"license":{"type":["object","null"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"}},"required":["id","slug","title"]},"genres":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"credits":{"type":["string","null"]},"source_url":{"type":["string","null"]},"release_date":{"type":["string","null"]},"stats":{"type":"object","additionalProperties":{"type":"number"}},"published_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","object","slug","title","subtitle","description","pack_type","status","publisher","cover","license","genres","tags","credits","source_url","release_date","stats","published_at","created_at","updated_at"]},"Image":{"type":["object","null"],"properties":{"id":{"type":"string"},"alt":{"type":["string","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"dominant_color":{"type":["string","null"]},"blurhash":{"type":["string","null"]},"url_template":{"type":"string","example":"https://files.sample.cloud/p/i/img_…/{size}.{format}"},"sizes":{"type":"array","items":{"type":"number"}},"formats":{"type":"array","items":{"type":"string"}},"url":{"type":["string","null"]},"inherited_from":{"type":"string","enum":["pack"]}},"required":["id","alt","width","height","dominant_color","blurhash","url_template","sizes","formats","url"]},"AssetList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"has_more":{"type":"boolean"},"next_offset":{"type":["number","null"],"description":"deprecated: use next_cursor"},"next_cursor":{"type":["string","null"],"description":"pass as cursor to get the next page"},"total":{"type":"number"},"facets":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"number"}},"description":"with include=facets: sounds per filter value"}},"required":["object","data","has_more","next_offset","next_cursor"]},"Asset":{"type":"object","properties":{"id":{"type":"string","example":"ast_01M8WJ71…"},"object":{"type":"string","enum":["asset"]},"kind":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"original_filename":{"type":["string","null"]},"status":{"type":"string"},"listing":{"type":"string"},"publisher":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},"pack":{"type":["object","null"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"}},"required":["id","slug","title","status"]},"artwork":{"$ref":"#/components/schemas/Image"},"tags":{"type":"array","items":{"type":"string"}},"genres":{"type":"array","items":{"type":"string"}},"instruments":{"type":"array","items":{"type":"string"}},"moods":{"type":"array","items":{"type":"string"}},"attributes":{"type":"array","items":{"type":"string"},"description":"Terms of the other facets: 'source:synth/analog', 'character:bright'"},"license":{"type":["object","null"],"properties":{"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"}},"required":["id","slug","title"]},"sample":{"type":["object","null"],"properties":{"sample_type":{"type":["string","null"]},"duration_ms":{"type":["number","null"]},"sample_rate":{"type":["number","null"]},"bit_depth":{"type":["number","null"]},"channels":{"type":["number","null"]},"music":{"type":"object","additionalProperties":{},"description":"Musical attributes: key, tempo, meter… (see domain-model.md)"},"loudness_lufs":{"type":["number","null"]},"true_peak_dbtp":{"type":["number","null"]}},"required":["sample_type","duration_ms","sample_rate","bit_depth","channels","music","loudness_lufs","true_peak_dbtp"]},"preset":{"type":["object","null"],"properties":{"plugin":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"web_player_url":{"type":["string","null"]}},"required":["id","slug","name","web_player_url"]},"format":{"type":"string"},"category":{"type":["string","null"]},"author":{"type":["string","null"]},"comment":{"type":["string","null"]},"bank_chain":{"type":"array","items":{"type":"string"}},"declared_license":{"type":["string","null"]}},"required":["plugin","format","category","author","comment","bank_chain","declared_license"],"description":"kind = preset: the synth it is for (GET /v1/assets?plugin=surge-xt), its category and author"},"stats":{"type":"object","additionalProperties":{"type":"number"},"description":"downloads, favorites"},"previews":{"type":"object","properties":{"mp3":{"type":["string","null"]},"waveform_peaks":{"type":["string","null"]}},"required":["mp3","waveform_peaks"]},"playable":{"type":["object","null"],"properties":{"url":{"type":"string"},"format":{"type":"string"},"size_bytes":{"type":"number"}},"required":["url","format","size_bytes"],"description":"SoundFont (SF2/SF3) for playing the sound in a browser or sampler"},"features":{"type":["object","null"],"additionalProperties":{"type":"number"},"description":"Sound features: attack_ms, centroid_hz, pitch_midi…"},"provenance":{"type":"object","additionalProperties":{}},"revision":{"type":"number"},"published_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["id","object","kind","title","description","original_filename","status","listing","publisher","pack","artwork","tags","genres","instruments","moods","attributes","license","sample","preset","stats","previews","playable","features","provenance","revision","published_at","created_at","updated_at"]},"TaxonomyFacet":{"type":"object","properties":{"slug":{"type":"string","example":"instrument"},"label":{"type":"string"},"labels":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":["string","null"]},"selection":{"type":"string","enum":["single","multi"]},"field":{"type":"string","enum":["instruments","genres","moods","attributes"],"description":"asset field and search parameter (instrument, genre, mood, attribute)"},"applies_to":{"type":"array","items":{"type":"string"}},"terms":{"type":"array","items":{"$ref":"#/components/schemas/TaxonomyTerm"}}},"required":["slug","label","labels","description","selection","field","applies_to","terms"]},"TaxonomyTerm":{"type":"object","properties":{"path":{"type":"string","example":"drums/hihat/open"},"value":{"type":"string","description":"the value as stored in an asset and as passed to the filter","example":"drums/hihat/open"},"label":{"type":"string"},"labels":{"type":"object","additionalProperties":{"type":"string"}},"depth":{"type":"number"}},"required":["path","value","label","labels","depth"]},"GenerationModel":{"type":"object","properties":{"id":{"type":"string","example":"moss-sfx"},"label":{"type":"string","example":"Sound effect"},"name":{"type":"string","example":"MOSS-SoundEffect v2.0"},"description":{"type":"string"},"music":{"type":"boolean","description":"takes bpm, key and time_signature"},"lyrics":{"type":"boolean","description":"needs lyrics"},"seconds":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"number"}},"required":["min","max","default"]},"license":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"note":{"type":"string"}},"required":["name","url","note"]},"examples":{"type":"array","items":{"type":"string"}}},"required":["id","label","name","description","music","lyrics","seconds","license","examples"]},"GenerationList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Generation"}},"usage":{"$ref":"#/components/schemas/GenerationUsage"}},"required":["object","data","usage"]},"Generation":{"type":"object","properties":{"id":{"type":"string","example":"gen_01M8YCH8BCFD7BTHMVJNGVFNCH"},"object":{"type":"string","enum":["generation"]},"model":{"type":"string"},"model_label":{"type":"string"},"model_name":{"type":"string"},"prompt":{"type":"string"},"params":{"type":"object","additionalProperties":{},"description":"seconds, bpm, key, time_signature, lyrics as requested"},"seed":{"type":["integer","null"],"description":"the seed used; the same seed and request give the same sound"},"status":{"type":"string","enum":["queued","running","done","failed","expired"]},"error":{"type":["string","null"]},"queue_position":{"type":["integer","null"],"description":"while queued: 1 = next"},"duration_ms":{"type":["integer","null"]},"sample_rate":{"type":["integer","null"]},"size_bytes":{"type":["integer","null"]},"result":{"type":"object","additionalProperties":{},"description":"what the model reports, e.g. bpm and key of a music loop"},"audio_url":{"type":["string","null"],"description":"WAV with the request in its metadata; a signed link valid for one hour"},"asset_id":{"type":["string","null"],"description":"the library sound, once published"},"publish":{"type":["object","null"],"properties":{"title":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"state":{"type":"string","enum":["requested","done","failed"]},"error":{"type":"string"}},"required":["title","state"]},"created_at":{"type":"string","format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"}},"required":["id","object","model","model_label","model_name","prompt","params","seed","status","error","queue_position","duration_ms","sample_rate","size_bytes","result","audio_url","asset_id","publish","created_at","finished_at"]},"GenerationUsage":{"type":"object","properties":{"used_today":{"type":"integer"},"daily_limit":{"type":"integer"},"pending":{"type":"integer"},"max_pending":{"type":"integer"}},"required":["used_today","daily_limit","pending","max_pending"]},"GenerationPublish":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"tags":{"type":"array","items":{"type":"string","minLength":1,"maxLength":30},"maxItems":10,"default":[]},"license":{"type":"string","enum":["CC0-1.0"]}},"required":["title","license"]}},"parameters":{}},"paths":{"/v1/health":{"get":{"tags":["system"],"summary":"Service health","responses":{"200":{"description":"All checks passed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"A dependency is down","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/packs":{"get":{"tags":["catalog"],"summary":"List packs","parameters":[{"schema":{"type":"string"},"required":false,"name":"q","in":"query"},{"schema":{"type":"string","description":"Publisher ID or slug"},"required":false,"description":"Publisher ID or slug","name":"publisher","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"description":"deprecated: use cursor"},"required":false,"description":"deprecated: use cursor","name":"offset","in":"query"},{"schema":{"type":"string","description":"next_cursor of the previous page"},"required":false,"description":"next_cursor of the previous page","name":"cursor","in":"query"}],"responses":{"200":{"description":"Packs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackList"}}}}}}},"/v1/packs/{id}":{"get":{"tags":["catalog"],"summary":"Pack by ID or slug","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Pack","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pack"}}}},"404":{"description":"No such pack"}}}},"/v1/assets":{"get":{"tags":["catalog"],"summary":"Search sounds and presets","parameters":[{"schema":{"type":"string","description":"Text: title, file name, tags, instruments, pack"},"required":false,"description":"Text: title, file name, tags, instruments, pack","name":"q","in":"query"},{"schema":{"type":"string","description":"Pack ID or slug"},"required":false,"description":"Pack ID or slug","name":"pack","in":"query"},{"schema":{"type":"string"},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["loop","one_shot"]},"required":false,"name":"sample_type","in":"query"},{"schema":{"type":"string","description":"comma-separated, any (OR): strings/cello or the whole strings category"},"required":false,"description":"comma-separated, any (OR): strings/cello or the whole strings category","name":"instrument","in":"query"},{"schema":{"type":"string","description":"comma-separated, all of them (AND)"},"required":false,"description":"comma-separated, all of them (AND)","name":"tag","in":"query"},{"schema":{"type":"string","description":"comma-separated, any (OR); a term also matches its subterms"},"required":false,"description":"comma-separated, any (OR); a term also matches its subterms","name":"genre","in":"query"},{"schema":{"type":"string","description":"comma-separated, any (OR)"},"required":false,"description":"comma-separated, any (OR)","name":"mood","in":"query"},{"schema":{"type":"string","description":"comma-separated, all of them (AND): source:synth, character:bright"},"required":false,"description":"comma-separated, all of them (AND): source:synth, character:bright","name":"attribute","in":"query"},{"schema":{"type":"string","description":"leave out sounds with any of these instruments"},"required":false,"description":"leave out sounds with any of these instruments","name":"exclude_instrument","in":"query"},{"schema":{"type":"string","description":"leave out these genres"},"required":false,"description":"leave out these genres","name":"exclude_genre","in":"query"},{"schema":{"type":"string","description":"leave out these moods"},"required":false,"description":"leave out these moods","name":"exclude_mood","in":"query"},{"schema":{"type":"string","description":"leave out these attributes"},"required":false,"description":"leave out these attributes","name":"exclude_attribute","in":"query"},{"schema":{"type":"string","description":"leave out these tags"},"required":false,"description":"leave out these tags","name":"exclude_tag","in":"query"},{"schema":{"type":"string","description":"presets for one synth: plugin product slug, e.g. surge-xt"},"required":false,"description":"presets for one synth: plugin product slug, e.g. surge-xt","name":"plugin","in":"query"},{"schema":{"type":"string","description":"preset category as the synth names it: Leads, Pads…"},"required":false,"description":"preset category as the synth names it: Leads, Pads…","name":"preset_category","in":"query"},{"schema":{"type":"string","maxLength":40,"description":"with sort=random: the same seed gives the same order"},"required":false,"description":"with sort=random: the same seed gives the same order","name":"seed","in":"query"},{"schema":{"type":"string","enum":["facets"],"description":"facets: add counts per filter value"},"required":false,"description":"facets: add counts per filter value","name":"include","in":"query"},{"schema":{"type":"string","description":"only playable sounds (with a SoundFont)"},"required":false,"description":"only playable sounds (with a SoundFont)","name":"playable","in":"query"},{"schema":{"type":"integer","minimum":1,"description":"maximum SoundFont size"},"required":false,"description":"maximum SoundFont size","name":"playable_max_bytes","in":"query"},{"schema":{"type":["number","null"]},"required":false,"name":"bpm_min","in":"query"},{"schema":{"type":["number","null"]},"required":false,"name":"bpm_max","in":"query"},{"schema":{"type":"string","example":"Am","description":"Musical key: Am, F#, Eb"},"required":false,"description":"Musical key: Am, F#, Eb","name":"key","in":"query"},{"schema":{"type":"string","enum":["none","representatives","all"],"description":"Whether to show instrument layers and round robins"},"required":false,"description":"Whether to show instrument layers and round robins","name":"components","in":"query"},{"schema":{"type":"string","enum":["relevance","newest","title","bpm","pack_order","popular","trending","random"]},"required":false,"name":"sort","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100},"required":false,"name":"limit","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"description":"deprecated: use cursor"},"required":false,"description":"deprecated: use cursor","name":"offset","in":"query"},{"schema":{"type":"string","description":"next_cursor of the previous page"},"required":false,"description":"next_cursor of the previous page","name":"cursor","in":"query"}],"responses":{"200":{"description":"Results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetList"}}}}}}},"/v1/assets/{id}":{"get":{"tags":["catalog"],"summary":"Asset by ID","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"404":{"description":"No such asset"}}}},"/v1/taxonomy":{"get":{"tags":["catalog"],"summary":"Taxonomy: facets and term trees (instrument, sound source, character, genre…)","parameters":[{"schema":{"type":"string","enum":["en","ru"]},"required":false,"name":"lang","in":"query"}],"responses":{"200":{"description":"Facets","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/TaxonomyFacet"}}},"required":["object","data"]}}}}}}},"/v1/taxonomies/{name}":{"get":{"tags":["catalog"],"summary":"One facet as a flat list: instruments, genres or a facet slug","parameters":[{"schema":{"type":"string"},"required":true,"name":"name","in":"path"},{"schema":{"type":"string","enum":["en","ru"]},"required":false,"name":"lang","in":"query"}],"responses":{"200":{"description":"Vocabulary","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"depth":{"type":"number"}},"required":["id","label","depth"]}}},"required":["object","data"]}}}},"404":{"description":"No such facet"}}}},"/v1/packs/{id}/offers":{"get":{"tags":["rights"],"summary":"How a pack can be got","responses":{"200":{"description":"How a pack can be got"}}}},"/v1/acquisitions":{"post":{"tags":["rights"],"summary":"Get a pack or a sound","description":"Body: { \"pack_id\" } or { \"asset_id\" }, plus \"accept_terms\": true the first time. Idempotent: getting what you hold returns the existing entitlement with 200; a new one is 201.","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Get a pack or a sound"}}}},"/v1/downloads":{"post":{"tags":["downloads"],"summary":"Download links for a pack or a sound you hold","description":"Body: { \"pack_id\" } or { \"asset_id\" }. Returns a manifest: files with relative paths, sizes, sha256 and links valid for 15 minutes, and one ZIP link for everything. 403 not_entitled with offer_id when you do not hold it.","security":[{"bearerAuth":["downloads"]}],"responses":{"200":{"description":"Download links for a pack or a sound you hold"}}}},"/v1/me/library":{"get":{"tags":["library"],"summary":"What you hold: entitlements, newest first","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"What you hold: entitlements, newest first"}}}},"/v1/me/library/changes":{"get":{"tags":["library"],"summary":"Library changes since a cursor (delta sync)","description":"cursor: the next_cursor of the previous call. Entities: entitlement, favorite, collection, collection_item, pack (a pack you hold changed its contents). op: upsert or delete (a tombstone). ?latest=true returns only the current cursor.","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"Library changes since a cursor (delta sync)"}}}},"/v1/me/downloads":{"get":{"tags":["library"],"summary":"Download history","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"Download history"}}}},"/v1/me/favorites":{"get":{"tags":["library"],"summary":"Favorites","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"Favorites"}}}},"/v1/me/favorites/{type}/{id}":{"put":{"tags":["library"],"summary":"Add to favorites (idempotent)","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Add to favorites (idempotent)"}}},"delete":{"tags":["library"],"summary":"Remove from favorites (idempotent)","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Remove from favorites (idempotent)"}}}},"/v1/me/collections":{"get":{"tags":["collections"],"summary":"Your collections","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"Your collections"}}},"post":{"tags":["collections"],"summary":"Create a collection","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Create a collection"}}}},"/v1/collections/{id}":{"get":{"tags":["collections"],"summary":"A collection (public and unlisted ones without a token)","responses":{"200":{"description":"A collection (public and unlisted ones without a token)"}}},"patch":{"tags":["collections"],"summary":"Change a collection","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Change a collection"}}},"delete":{"tags":["collections"],"summary":"Delete a collection","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Delete a collection"}}}},"/v1/collections/{id}/items":{"get":{"tags":["collections"],"summary":"Items of a collection","responses":{"200":{"description":"Items of a collection"}}},"post":{"tags":["collections"],"summary":"Add a sound or pack to a collection","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Add a sound or pack to a collection"}}}},"/v1/collections/{id}/items/{item_id}":{"patch":{"tags":["collections"],"summary":"Move an item","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Move an item"}}},"delete":{"tags":["collections"],"summary":"Remove an item","security":[{"bearerAuth":["library:write"]}],"responses":{"200":{"description":"Remove an item"}}}},"/v1/events":{"get":{"tags":["webhooks"],"summary":"Events in your account, newest first","security":[{"bearerAuth":["library:read"]}],"responses":{"200":{"description":"Events in your account, newest first"}}}},"/v1/me/webhook-endpoints":{"get":{"tags":["webhooks"],"summary":"Your webhook endpoints","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Your webhook endpoints"}}},"post":{"tags":["webhooks"],"summary":"Add a webhook endpoint","description":"Body: { \"url\": \"https://…\", \"event_types\": [] } (empty = all). The response has the signing secret (whsec_…), shown only once.","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Add a webhook endpoint"}}}},"/v1/me/webhook-endpoints/{id}":{"patch":{"tags":["webhooks"],"summary":"Enable or disable an endpoint","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Enable or disable an endpoint"}}},"delete":{"tags":["webhooks"],"summary":"Delete an endpoint","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Delete an endpoint"}}}},"/v1/me/webhook-endpoints/{id}/deliveries":{"get":{"tags":["webhooks"],"summary":"Recent deliveries","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Recent deliveries"}}}},"/v1/me/webhook-endpoints/{id}/test":{"post":{"tags":["webhooks"],"summary":"Send a test event","security":[{"bearerAuth":["webhooks"]}],"responses":{"200":{"description":"Send a test event"}}}},"/v1/generation-models":{"get":{"tags":["generation"],"summary":"Models you can generate with","responses":{"200":{"description":"Enabled models","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/GenerationModel"}}},"required":["object","data"]}}}}}}},"/v1/generations":{"get":{"tags":["generation"],"summary":"Your recent generations and limits","security":[{"bearerAuth":["generate"]}],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Newest first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationList"}}}},"401":{"description":"Error (problem+json)"},"403":{"description":"Error (problem+json)"}}},"post":{"tags":["generation"],"summary":"Generate a sound","description":"Queues a generation. Poll GET /v1/generations/{id} until status is done or failed.","security":[{"bearerAuth":["generate"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"prompt":{"type":"string","minLength":3,"maxLength":300},"seconds":{"type":"number","minimum":0.5,"maximum":60},"bpm":{"type":"integer","minimum":40,"maximum":220},"key":{"type":"object","properties":{"tonic":{"type":"string","enum":["C","C#","Db","D","D#","Eb","E","F","F#","Gb","G","G#","Ab","A","A#","Bb","B"]},"scale":{"type":"string","enum":["major","minor"]}},"required":["tonic","scale"]},"time_signature":{"type":"string","enum":["2","3","4","6"]},"lyrics":{"type":"string","maxLength":1000},"seed":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["model","prompt","seconds"]}}}},"responses":{"201":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"401":{"description":"Error (problem+json)"},"403":{"description":"Error (problem+json)"},"422":{"description":"Error (problem+json)"},"429":{"description":"daily_limit or busy (problem+json)"}}}},"/v1/generations/{id}":{"get":{"tags":["generation"],"summary":"One generation","security":[{"bearerAuth":["generate"]}],"parameters":[{"schema":{"type":"string","example":"gen_01M8YCH8BCFD7BTHMVJNGVFNCH"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The generation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"404":{"description":"Error (problem+json)"}}},"delete":{"tags":["generation"],"summary":"Delete a generation and its audio","security":[{"bearerAuth":["generate"]}],"parameters":[{"schema":{"type":"string","example":"gen_01M8YCH8BCFD7BTHMVJNGVFNCH"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Deleted"},"404":{"description":"Error (problem+json)"},"409":{"description":"Error (problem+json)"}}}},"/v1/generations/{id}/publish":{"post":{"tags":["generation"],"summary":"Publish to the shared library under CC0","description":"Gives the sound to everyone under CC0 1.0 (public domain) and adds it to the \"Generated sounds\" pack. This cannot be taken back. Show the user this before calling. license must be \"CC0-1.0\" to confirm.","security":[{"bearerAuth":["generate"]}],"parameters":[{"schema":{"type":"string","example":"gen_01M8YCH8BCFD7BTHMVJNGVFNCH"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationPublish"}}}},"responses":{"202":{"description":"Publishing; poll the generation for asset_id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"404":{"description":"Error (problem+json)"},"409":{"description":"Error (problem+json)"}}}}},"webhooks":{}}