{"openapi":"3.1.0","info":{"title":"SporeStack API","version":"1.0.0"},"paths":{"/availability/by-flavor/{provider}/{flavor}":{"get":{"tags":["availability"],"summary":"Availability By Flavor","description":"Returns a list of regions which have availability for a given flavor.","operationId":"availability_by_flavor_availability_by_flavor__provider___flavor__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider","description":"Which provider the flavor is for."},"description":"Which provider the flavor is for.","example":"vultr"},{"name":"flavor","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[a-z0-9-_.]+$","title":"Flavor","description":"Flavor slug to check availability for."},"description":"Flavor slug to check availability for.","example":"vc2-1c-1gb"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Availability By Flavor Availability By Flavor  Provider   Flavor  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/aup":{"get":{"tags":["aup"],"summary":"Aup","description":"Responds with our Acceptable Use Policy.","operationId":"aup_aup_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/changelog":{"get":{"tags":["changelog"],"summary":"Changelog","description":"Returns a changelog for this API.\n\nWe recommend checking this frequently if you use the API.","operationId":"changelog_changelog_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/token/{token}/servers":{"post":{"tags":["SporeStack"],"summary":"Server Launch","description":"Launch a new server. provider: sporestack_eu is deprecated.","operationId":"server_launch_token__token__servers_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerLaunchRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerLaunchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["SporeStack"],"summary":"Token Servers","description":"Info on all servers launched by a given token.","operationId":"token_servers_token__token__servers_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"include_forgotten","in":"query","required":false,"schema":{"type":"boolean","description":"Include forgotten servers.","default":true,"title":"Include Forgotten"},"description":"Include forgotten servers."},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include deleted servers.","default":true,"title":"Include Deleted"},"description":"Include deleted servers."},{"name":"hostname","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":128,"pattern":"(^[a-zA-Z0-9-_. ]+$)"},{"type":"null"}],"description":"Only return server(s) with a given hostname.","examples":["web-1"],"title":"Hostname"},"description":"Only return server(s) with a given hostname."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":100000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sporestack_api__api__ServersLaunchedFromToken__Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/server/quote":{"get":{"tags":["SporeStack"],"summary":"Server Quote","description":"Gives a quote for a new server.","operationId":"server_quote_server_quote_get","deprecated":true,"parameters":[{"name":"days","in":"query","required":true,"schema":{"type":"integer","maximum":90,"minimum":1,"title":"Days","description":"Number of days that the server should run for."},"description":"Number of days that the server should run for.","example":14},{"name":"flavor","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[a-z0-9-_.]+$","title":"Flavor","description":"Flavor slug."},"description":"Flavor slug.","example":"vps-1vcpu-1gb"},{"name":"provider","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Provider","title":"Provider","default":"digitalocean"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sporestack_api__api__ServerQuote__Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/topup":{"post":{"tags":["SporeStack"],"summary":"Token Server Topup","description":"Renews an existing server. Also consider using autorenew!","operationId":"token_server_topup_token__token__servers__machine_id__topup_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenServerTopupRequest","default":{}}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}":{"get":{"tags":["SporeStack"],"summary":"Token Server Info","description":"Returns information about the server.","operationId":"token_server_info_token__token__servers__machine_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenServerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["SporeStack"],"summary":"Token Server Update","description":"Update details about a server.","operationId":"token_server_update_token__token__servers__machine_id__patch","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerUpdateRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["SporeStack"],"summary":"Token Server Delete","description":"Deletes the server and refunds an approximate remaining balance to the associated\ntoken.","operationId":"token_server_delete_token__token__servers__machine_id__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/vnc":{"get":{"tags":["SporeStack"],"summary":"Token Server Vnc","description":"Returns a endpoint to connect to the server's console.\nVNC, HTTPS, SSH/serial, etc. Provider specific.","operationId":"token_server_vnc_token__token__servers__machine_id__vnc_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/start":{"post":{"tags":["SporeStack"],"summary":"Token Server Start","description":"Powers the server on.","operationId":"token_server_start_token__token__servers__machine_id__start_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/stop":{"post":{"tags":["SporeStack"],"summary":"Token Server Stop","description":"Immediately powers off the server.","operationId":"token_server_stop_token__token__servers__machine_id__stop_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/reboot":{"post":{"tags":["SporeStack"],"summary":"Token Server Reboot","description":"Immediately reboots the server.","operationId":"token_server_reboot_token__token__servers__machine_id__reboot_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/forget":{"post":{"tags":["SporeStack"],"summary":"Token Server Forget","description":"Forget about a deleted server.","operationId":"token_server_forget_token__token__servers__machine_id__forget_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/servers/{machine_id}/rebuild":{"post":{"tags":["SporeStack"],"summary":"Token Server Rebuild","description":"Rebuilds the server with the same operating system and SSH key provided initially.\n\nThis will delete all data on the server! Will take a couple of minutes after the\nrequest is issued.","operationId":"token_server_rebuild_token__token__servers__machine_id__rebuild_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"machine_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Machine ID","description":"Unique identifier for the server."},"description":"Unique identifier for the server.","example":"ss_m_1oir4suq597cmkjo"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token":{"get":{"tags":["SporeStack"],"summary":"Get Token","description":"Returns a new token. (No longer useful.)","operationId":"get_token_token_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"deprecated":true},"post":{"tags":["SporeStack"],"summary":"Token New","description":"Creates an invoice for funding a new token. Invoice includes your new token.","operationId":"token_new_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenNewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceReadWithToken"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/balance":{"get":{"tags":["SporeStack"],"summary":"Token Balance","description":"Returns a token's balance.","operationId":"token_balance_token__token__balance_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sporestack_api__api__TokenBalance__Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/info":{"get":{"tags":["SporeStack"],"summary":"Token Info","description":"Returns info about a token, including balance.","operationId":"token_info_token__token__info_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/invoices":{"get":{"tags":["SporeStack"],"summary":"Token Invoices","description":"Returns a token's invoices.","operationId":"token_invoices_token__token__invoices_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceRead"},"title":"Response Token Invoices Token  Token  Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/invoices/{invoice_id}":{"get":{"tags":["SporeStack"],"summary":"Token Invoice","description":"Return an invoice.","operationId":"token_invoice_token__token__invoices__invoice_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"},{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","minLength":16,"maxLength":16,"pattern":"[0123456789abcdefghijklmnopqrstuv]{16}","title":"Invoice ID","description":"The invoice's unique identifier."},"description":"The invoice's unique identifier.","example":"1oir4suq597cmkjo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/messages":{"get":{"tags":["SporeStack"],"summary":"Token Show Messages","description":"Returns all of a token's messages (sent and received).","operationId":"token_show_messages_token__token__messages_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TokenMessageRead"},"title":"Response Token Show Messages Token  Token  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["SporeStack"],"summary":"Token Send Message","description":"Send a message to SporeStack.","operationId":"token_send_message_token__token__messages_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenMessageSend"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token/{token}/add":{"post":{"tags":["SporeStack"],"summary":"Token Add","description":"Creates an invoice for topping up a token.","operationId":"token_add_token__token__add_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-z0-9_]+$","title":"Token","description":"Secret and globally unique identifier for your token."},"description":"Secret and globally unique identifier for your token.","example":"ss_t_deadbeefcafedeadbeefcafemoo"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/sporestack_api__api__TokenAdd__Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/is-affiliate-valid/{affiliate}":{"get":{"tags":["SporeStack"],"summary":"Is Affiliate Valid","description":"Checks if an affiliate is valid. Empty 2XX response if it is.","operationId":"is_affiliate_valid_is_affiliate_valid__affiliate__get","parameters":[{"name":"affiliate","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"title":"Affiliate Token"},"example":"ss_a_7bda5b4cffed000b2f4404_9482"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slugs/os":{"get":{"tags":["slugs"],"summary":"Slugs Os","description":"Returns a list of operating system options.","operationId":"slugs_os_slugs_os_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"Which provider to filter results for.","title":"Provider"},"description":"Which provider to filter results for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OperatingSystem"},"title":"Response Slugs Os Slugs Os Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slugs/flavors":{"get":{"tags":["slugs"],"summary":"Slugs Flavors","description":"Returns a list of flavor (server size/plan) options.","operationId":"slugs_flavors_slugs_flavors_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"Which provider to filter results for.","title":"Provider"},"description":"Which provider to filter results for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FlavorRead"},"title":"Response Slugs Flavors Slugs Flavors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slugs/regions":{"get":{"tags":["slugs"],"summary":"Slugs Regions","description":"Returns a list of regions which you can launch servers into.","operationId":"slugs_regions_slugs_regions_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"Which provider to filter results for.","title":"Provider"},"description":"Which provider to filter results for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"},"title":"Response Slugs Regions Slugs Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Architecture":{"type":"string","enum":["x86_64"],"title":"Architecture"},"BillingCycle":{"type":"string","enum":["daily","monthly","annually"],"title":"BillingCycle"},"Currency":{"type":"string","enum":["xmr","btc","bch","usdt"],"title":"Currency"},"FlavorFeature":{"type":"string","enum":["gpu"],"title":"FlavorFeature"},"FlavorRead":{"properties":{"slug":{"type":"string","maxLength":32,"minLength":1,"pattern":"^[a-z0-9-_.]+$","title":"Flavor","description":"Unique string to identify the flavor.","example":"vps-1vcpu-1gb"},"cores":{"type":"integer","minimum":1.0,"title":"Cores","description":"Number of (possibly shared) CPU cores or threads","default":1,"example":1},"memory":{"type":"integer","minimum":512.0,"title":"Memory","description":"Memory in MiB","example":1024},"disk":{"type":"integer","minimum":10.0,"title":"Disk","description":"Disk storage in GiB","example":25},"price":{"type":"integer","minimum":0.0,"title":"Price","description":"USD cents per day.","default":0,"example":38},"monthly_price":{"type":"number","minimum":0.0,"title":"Monthly Price","description":"USD per month, for select servers.","default":0.0,"example":4.9},"annual_price":{"type":"number","minimum":0.0,"title":"Annual Price","description":"USD per year, for select servers.","default":0.0,"example":54.0},"ipv4":{"type":"string","title":"Ipv4","example":"/32"},"ipv6":{"type":"string","title":"Ipv6","example":"/64"},"bandwidth_per_month":{"type":"number","title":"Bandwidth per calendar month (TiB)","example":1.0},"provider":{"$ref":"#/components/schemas/Provider"},"type":{"$ref":"#/components/schemas/FlavorType","default":"vps"},"architecture":{"$ref":"#/components/schemas/Architecture","default":"x86_64"},"features":{"items":{"$ref":"#/components/schemas/FlavorFeature"},"type":"array","title":"Features","default":[]}},"type":"object","required":["slug","memory","disk","ipv4","ipv6","bandwidth_per_month","provider"],"title":"FlavorRead"},"FlavorType":{"type":"string","enum":["vps","baremetal"],"title":"FlavorType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceRead":{"properties":{"payment_uri":{"type":"string","title":"Payment Uri","description":"Cryptocurrency URI for the payment.","examples":["bitcoin:17SkEw2md5avVNyYgj6RiXuQKNwkXaxFyQ?amount=10000.00000000"]},"cryptocurrency":{"$ref":"#/components/schemas/Currency","description":"Cryptocurrency that will be used to pay this invoice.","examples":["btc","xmr"]},"amount":{"type":"integer","minimum":0.0,"title":"Amount","description":"Amount of cents to add to the token if this invoice is paid.","examples":["4100"]},"fiat_per_coin":{"type":"string","title":"Fiat Per Coin","description":"Stringified float of the price when this was made.","examples":["0.0041"]},"created":{"type":"integer","title":"Created","description":"Timestamp of when this invoice was created.","examples":[1274551891]},"expires":{"type":"integer","title":"Expires","description":"Timestamp of when this invoice will expire.","examples":[1274552491]},"paid":{"type":"integer","title":"Paid","description":"Timestamp of when this invoice was paid. 0 if unpaid.","default":0,"examples":[1274552191,0]},"txid":{"anyOf":[{"type":"string","maxLength":66,"minLength":64},{"type":"null"}],"title":"Txid","description":"TXID of this payment, if it was paid.","examples":["a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"]},"affiliate_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":32},{"type":"null"}],"title":"Affiliate Token","description":"Affiliate Token for this invoice, if any.","examples":[null,"ss_a_7bda5b4cffed000b2f4404_9482"]},"id":{"type":"string","title":"Id","description":"ID of the invoice.","readOnly":true,"examples":["1oir4suq597cmkjo"]},"expired":{"type":"boolean","title":"Expired","description":"Whether or not the invoice has expired.","readOnly":true,"examples":[false]}},"type":"object","required":["payment_uri","cryptocurrency","amount","fiat_per_coin","id","expired"],"title":"InvoiceRead"},"InvoiceReadWithToken":{"properties":{"payment_uri":{"type":"string","title":"Payment Uri","description":"Cryptocurrency URI for the payment.","examples":["bitcoin:17SkEw2md5avVNyYgj6RiXuQKNwkXaxFyQ?amount=10000.00000000"]},"cryptocurrency":{"$ref":"#/components/schemas/Currency","description":"Cryptocurrency that will be used to pay this invoice.","examples":["btc","xmr"]},"amount":{"type":"integer","minimum":0.0,"title":"Amount","description":"Amount of cents to add to the token if this invoice is paid.","examples":["4100"]},"fiat_per_coin":{"type":"string","title":"Fiat Per Coin","description":"Stringified float of the price when this was made.","examples":["0.0041"]},"created":{"type":"integer","title":"Created","description":"Timestamp of when this invoice was created.","examples":[1274551891]},"expires":{"type":"integer","title":"Expires","description":"Timestamp of when this invoice will expire.","examples":[1274552491]},"paid":{"type":"integer","title":"Paid","description":"Timestamp of when this invoice was paid. 0 if unpaid.","default":0,"examples":[1274552191,0]},"txid":{"anyOf":[{"type":"string","maxLength":66,"minLength":64},{"type":"null"}],"title":"Txid","description":"TXID of this payment, if it was paid.","examples":["a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"]},"affiliate_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":32},{"type":"null"}],"title":"Affiliate Token","description":"Affiliate Token for this invoice, if any.","examples":[null,"ss_a_7bda5b4cffed000b2f4404_9482"]},"token":{"type":"string","title":"Token"},"id":{"type":"string","title":"Id","description":"ID of the invoice.","readOnly":true,"examples":["1oir4suq597cmkjo"]},"expired":{"type":"boolean","title":"Expired","description":"Whether or not the invoice has expired.","readOnly":true,"examples":[false]}},"type":"object","required":["payment_uri","cryptocurrency","amount","fiat_per_coin","token","id","expired"],"title":"InvoiceReadWithToken"},"OperatingSystem":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z0-9-.]+$","title":"Operating System","description":"Unique string to identify the operating system.","example":"debian-11"},"provider_slug":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Provider Slug","default":""},"provider":{"$ref":"#/components/schemas/Provider","description":"Which provider this entry is applicable to."},"name":{"type":"string","maxLength":64,"minLength":1,"title":"Operating System Name","description":"Human readable string describing the operating system.","default":"","example":"Debian 11 x64"},"minimum_disk":{"type":"integer","maximum":1024.0,"minimum":0.0,"title":"Minimum disk","description":"Minimum disk storage required in GiB (currently only used on DO.)","default":0,"example":10}},"type":"object","required":["slug","provider"],"title":"OperatingSystem"},"Provider":{"type":"string","enum":["dummy","digitalocean","vultr","slowservers","sporestack_eu"],"title":"Provider"},"Region":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"provider":{"$ref":"#/components/schemas/Provider"}},"type":"object","required":["slug","name","provider"],"title":"Region"},"Request":{"properties":{"currency":{"$ref":"#/components/schemas/Currency","description":"Cryptocurrency that you would like to pay with.","example":"xmr"},"dollars":{"type":"integer","maximum":100000000.0,"minimum":5.0,"title":"Dollars","description":"How many dollars (USD) to add to the token.","example":41},"affiliate_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":3,"pattern":"^[a-z0-9-_]+$"},{"type":"null"}],"title":"Affiliate Token","description":"Affiliate Token of whomever referred you, if any.","examples":[null,"ss_a_7bda5b4cffed000b2f4404_9482"]}},"type":"object","required":["currency","dollars"],"title":"Request"},"ServerDeletedBy":{"type":"string","enum":["expiration","manual","sporestack"],"title":"ServerDeletedBy"},"ServerLaunchRequest":{"properties":{"flavor":{"type":"string","maxLength":32,"minLength":1,"pattern":"^[a-z0-9-_.]+$","title":"Flavor","description":"Flavor slug.","example":"vps-1vcpu-1gb"},"operating_system":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z0-9-.]+$","title":"Operating System","description":"Operating System that should be installed on the server.","example":"debian-12"},"ssh_key":{"type":"string","maxLength":2048,"minLength":10,"title":"SSH Key","description":"Public SSH key to authenticate access to the server. Login as root.","example":"ssh-ed25519 AAAA..."},"provider":{"$ref":"#/components/schemas/Provider","title":"Hosting Provider","description":"Hosting Provider that you'd like to launch the server with.","example":"digitalocean"},"autorenew":{"type":"boolean","title":"Autorenew","description":"Automatically renew the server from the token, keeping it at 1 week expiration.","default":false,"examples":[true]},"days":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Days","description":"Number of days that the server should run for, if autorenew is false.","example":1},"billing_cycle":{"$ref":"#/components/schemas/BillingCycle","title":"Billing Cycle","description":"Selects which billing cycle the server will fall under.","default":"daily"},"region":{"anyOf":[{"type":"string","maxLength":12,"minLength":3,"pattern":"^[a-z0-9]+$"},{"type":"null"}],"title":"Region","description":"Region to launch the server in. null implies any region with capacity. null only works with DigitalOcean.","example":"nyc1"},"hostname":{"type":"string","maxLength":128,"minLength":0,"pattern":"(^$|^[a-zA-Z0-9-_. ]+$)","title":"Hostname","description":"Hostname to refer to your server by.","default":"","examples":["web-1"]},"user_data":{"anyOf":[{"type":"string","maxLength":65536,"minLength":0},{"type":"null"}],"title":"Cloud Init User Data","description":"Cloud Init User Data configure the server when launched. Not supported on Slow Servers or SporeStack EU, must be null or unset for them."}},"type":"object","required":["flavor","operating_system","ssh_key","provider","region"],"title":"ServerLaunchRequest"},"ServerLaunchResponse":{"properties":{"machine_id":{"type":"string","title":"Machine ID","description":"Globally unique, secret identifier of the server.","example":"ss_m_1deadbeefcafedeadbeef1_0892"}},"type":"object","required":["machine_id"],"title":"ServerLaunchResponse"},"ServerUpdateRequest":{"properties":{"hostname":{"anyOf":[{"type":"string","maxLength":128,"minLength":0,"pattern":"(^$|^[a-zA-Z0-9-_. ]+$)"},{"type":"null"}],"title":"Hostname","description":"Hostname to refer to your server by.","examples":["web-1"]},"autorenew":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autorenew","description":"Automatically renew the server from the token, keeping it at 1 week expiration.","examples":[true]}},"type":"object","title":"ServerUpdateRequest"},"TokenInfo":{"properties":{"affiliate_token":{"type":"string","maxLength":64,"minLength":0,"title":"Affiliate Token","description":"If zero length, token has not been activated."},"balance_cents":{"type":"integer","minimum":0.0,"title":"Cents","description":"(US) cents","example":100000},"balance_usd":{"type":"string","minLength":5,"title":"USD","description":"USD in $1,000.00 format","examples":["$1,000.00"]},"burn_rate_cents":{"type":"integer","minimum":0.0,"title":"Burn Rate (Cents)","description":"Burn rate in cents (per day) for servers set to autorenew.","example":380},"burn_rate_usd":{"type":"string","minLength":5,"title":"Burn Rate (USD)","description":"Burn rate (per day) in dollar format for servers set to autorenew.","example":"$3.80"},"days_remaining":{"type":"integer","minimum":0.0,"title":"Days remaining","description":"Days remaining for servers set to autorenew.","example":2631},"servers":{"type":"integer","minimum":0.0,"title":"Servers","description":"Number of non-deleted servers.","example":10},"autorenew_servers":{"type":"integer","minimum":0.0,"title":"Autorenew Servers","description":"Number of non-deleted servers set to autorenew.","example":10},"suspended_servers":{"type":"integer","minimum":0.0,"title":"Suspended Servers","description":"Number of non-deleted suspended servers.","example":0},"messages":{"type":"integer","minimum":0.0,"title":"Messages","description":"Number of messages.","example":2},"invoices":{"type":"integer","minimum":0.0,"title":"Invoices","description":"Number of invoices.","example":2}},"type":"object","required":["affiliate_token","balance_cents","balance_usd","burn_rate_cents","burn_rate_usd","days_remaining","servers","autorenew_servers","suspended_servers","messages","invoices"],"title":"TokenInfo"},"TokenMessageRead":{"properties":{"message":{"type":"string","maxLength":10000,"minLength":1,"title":"Message","examples":["Help! I had a payment issue."]},"sent_at":{"type":"string","title":"Sent At","description":"When the message was sent.","examples":["2017-01-08T07:00:00Z"]},"sender":{"$ref":"#/components/schemas/TokenMessageSender","title":"Sender","description":"Who sent the message."}},"type":"object","required":["message","sent_at","sender"],"title":"TokenMessageRead"},"TokenMessageSend":{"properties":{"message":{"type":"string","maxLength":10000,"minLength":1,"title":"Message","examples":["Help! I had a payment issue."]}},"type":"object","required":["message"],"title":"TokenMessageSend"},"TokenMessageSender":{"type":"string","enum":["User","SporeStack"],"title":"TokenMessageSender"},"TokenNewRequest":{"properties":{"currency":{"$ref":"#/components/schemas/Currency","description":"Cryptocurrency that you would like to pay with.","example":"xmr"},"dollars":{"type":"integer","maximum":10000000.0,"minimum":10.0,"title":"Dollars","description":"How many dollars (USD) initially fund the token with.","example":41},"code":{"anyOf":[{"type":"string","maxLength":40,"minLength":5,"pattern":"^[a-z0-9-]+$"},{"type":"null"}],"title":"Access/Invite/Coupon/etc Code","description":"There may not actually be any discounts with this code.","examples":[null,"dead-beef-cafe"]}},"type":"object","required":["currency","dollars"],"title":"TokenNewRequest"},"TokenServerRead":{"properties":{"machine_id":{"type":"string","maxLength":64,"minLength":16,"title":"Machine ID","description":"Globally unique identifier of the server.","examples":["1oir4suq597cmkjo","ss_m_1deadbeefcafedeadbeef1_0892"]},"billing_cycle":{"$ref":"#/components/schemas/BillingCycle","default":"daily"},"created_at":{"type":"integer","minimum":0.0,"title":"Created At","description":"Epoch of when the server was launched."},"expiration":{"type":"integer","minimum":0.0,"title":"Expiration","description":"Epoch of when the server will expire if not renewed."},"region":{"type":"string","title":"Region","description":"Region that the server was launched into.","default":"","examples":["nyc1"]},"ipv4":{"type":"string","title":"Ipv4","description":"IPv4 address of the server.","default":"","examples":["1.2.3.4"]},"ipv6":{"type":"string","title":"Ipv6","description":"IPv6 address of the server.","default":"","examples":["ff00::1"]},"deleted_at":{"type":"integer","minimum":0.0,"title":"Deleted At","description":"When the server was deleted, if ever. Servers deleted for 90 days will be removed from our database. If not deleted, value is 0.","default":0},"deleted_by":{"anyOf":[{"$ref":"#/components/schemas/ServerDeletedBy"},{"type":"null"}],"title":"Deleted By","description":"What triggered the server's deletion."},"forgotten_at":{"anyOf":[{"type":"null"},{"type":"string"}],"title":"Forgotten At","description":"When the server was forgotten, if ever. Only deleted servers may be forgotten, which removes them from view under most circumstances. ISO 8601 format, like: 2017-01-08T07:00:00Z","examples":[null,"2017-01-08T07:00:00Z"]},"suspended_at":{"anyOf":[{"type":"null"},{"type":"string"}],"title":"Suspended At","description":"When the server was suspended, if ever. Suspended servers are off and cannot be powered back on without manual intervention through support. ISO 8601 format, like: 2017-01-08T07:00:00Z","examples":[null,"2017-01-08T07:00:00Z"]},"provider":{"$ref":"#/components/schemas/Provider","default":"dummy"},"running":{"type":"boolean","title":"Running","description":"Whether or not the server is running.","default":true},"deny_smtp":{"type":"boolean","title":"Deny Smtp","default":true},"flavor_slug":{"type":"string","maxLength":64,"minLength":3,"title":"Flavor Slug","default":"i-am-a-fake-flavor","examples":["vps-1vcpu-1gb"]},"operating_system":{"type":"string","title":"Operating System","description":"Operating system that the server was launched with.","default":"","examples":["debian-12"]},"hostname":{"type":"string","maxLength":128,"minLength":0,"pattern":"(^$|^[a-zA-Z0-9-_. ]+$)","title":"Hostname","description":"Hostname to refer to your server by.","default":"","examples":["web-1"]},"autorenew":{"type":"boolean","title":"Autorenew","description":"Automatically renew the server from the token, keeping it at 1 week expiration.","default":false,"examples":[true]}},"type":"object","required":["expiration"],"title":"TokenServerRead"},"TokenServerTopupRequest":{"properties":{"days":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Days","description":"Number of days to extend the server's lifetime by, if it has a daily billing cycle.","example":14}},"type":"object","title":"TokenServerTopupRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"sporestack_api__api__ServerQuote__Response":{"properties":{"cents":{"type":"integer","minimum":0.0,"title":"Cents","description":"(US) cents","example":100000},"usd":{"type":"string","minLength":5,"title":"USD","description":"USD in $1,000.00 format","examples":["$1,000.00"]}},"type":"object","required":["cents","usd"],"title":"Response"},"sporestack_api__api__ServersLaunchedFromToken__Response":{"properties":{"servers":{"items":{"$ref":"#/components/schemas/TokenServerRead"},"type":"array","title":"Servers"}},"type":"object","required":["servers"],"title":"Response"},"sporestack_api__api__TokenAdd__Response":{"properties":{"invoice":{"$ref":"#/components/schemas/InvoiceRead"}},"type":"object","required":["invoice"],"title":"Response"},"sporestack_api__api__TokenBalance__Response":{"properties":{"cents":{"type":"integer","minimum":0.0,"title":"Cents","description":"(US) cents","example":100000},"usd":{"type":"string","minLength":5,"title":"USD","description":"USD in $1,000.00 format","examples":["$1,000.00"]}},"type":"object","required":["cents","usd"],"title":"Response"}}}}