{"openapi":"3.0.3","info":{"title":"Vector Trading Public API","version":"1.0.0","description":"Public REST API for external integrations built on Vector Trading account API keys. The current version includes bots bundles listing, user search, checkout sessions, and access grants management. Requests from IP addresses outside the key's optional CIDR masks are rejected."},"servers":[{"url":"/api/rest"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Use the API key created in the Profile > API Keys tab. Optional IP masks configured on the key are enforced automatically."}},"schemas":{"ApiKeyPermissionLevel":{"type":"string","enum":["none","read","write"]},"ReadOnlyApiKeyPermissionLevel":{"type":"string","enum":["none","read"]},"AccountApiKeyPermissions":{"type":"object","required":["bundles","grants","users"],"properties":{"bundles":{"$ref":"#/components/schemas/ReadOnlyApiKeyPermissionLevel"},"grants":{"$ref":"#/components/schemas/ApiKeyPermissionLevel"},"users":{"$ref":"#/components/schemas/ReadOnlyApiKeyPermissionLevel"}}},"PublicUser":{"type":"object","required":["userId","displayName"],"properties":{"userId":{"type":"string","example":"d7d8308a1b9542f5b7fbab89354b55e1"},"displayName":{"type":"string","example":"TraderAlex"},"avatar":{"type":"string","nullable":true,"example":"https://example.com/avatar.png"}}},"OwnedTradingBundleSummary":{"type":"object","required":["_id","name","marketType","quote","access","status","grantedUsersCount"],"properties":{"_id":{"type":"string","example":"2be97361321c46f2bc7300a04fd6d133"},"name":{"type":"string","example":"BTC Momentum"},"marketType":{"type":"string","example":"swap"},"quote":{"type":"string","example":"USDT"},"access":{"type":"string","enum":["private","public","restricted"]},"status":{"type":"string","enum":["active","partially_active","paused","partially_paused","stopped","archived"]},"grantedUsersCount":{"type":"integer","example":3},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"TradingBundleAccessGrantType":{"type":"string","enum":["trial","owner_grant","paid_external","referral_reward","gift"]},"TradingBundleGrantedUser":{"type":"object","required":["user"],"properties":{"user":{"$ref":"#/components/schemas/PublicUser"},"grantId":{"type":"string","example":"dbd3d7f79cf846dd91f3db12f3ebbb06"},"grantType":{"$ref":"#/components/schemas/TradingBundleAccessGrantType"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"accessEndsAt":{"type":"string","format":"date-time"},"accessIsPermanent":{"type":"boolean","example":false}}},"TradingBundleAccessGrantSummary":{"type":"object","required":["id","grantType"],"properties":{"id":{"type":"string","example":"dbd3d7f79cf846dd91f3db12f3ebbb06"},"grantType":{"$ref":"#/components/schemas/TradingBundleAccessGrantType"},"userId":{"type":"string","example":"7bb8d364a6984fbab05a06a6c7f85db2","description":"Owner-scoped user alias. Omitted when the Account is missing or permanently deleted."},"sourceId":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$","maxLength":256,"example":"stripe:invoice:in_123"},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}},"UsersSearchResponse":{"type":"object","required":["users","query","limit"],"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/PublicUser"}},"query":{"type":"string","example":"alex"},"limit":{"type":"integer","minimum":1,"maximum":50,"example":10},"nextCursor":{"type":"string","description":"Opaque cursor to pass unchanged on the next request."}}},"BundlesResponse":{"type":"object","required":["bundles","limit"],"properties":{"bundles":{"type":"array","items":{"$ref":"#/components/schemas/OwnedTradingBundleSummary"}},"limit":{"type":"integer","minimum":1,"maximum":100,"example":50},"nextCursor":{"type":"string","description":"Opaque cursor to pass unchanged on the next request."}}},"BundleUsersResponse":{"type":"object","required":["users","limit"],"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/TradingBundleGrantedUser"}},"limit":{"type":"integer","minimum":1,"maximum":100,"example":50},"nextCursor":{"type":"string","pattern":"^(?:grant|scan):[a-f0-9]{32}$","description":"Opaque owner-scoped cursor to pass unchanged on the next page request."}}},"BundleGrantsResponse":{"type":"object","required":["grants","limit"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/TradingBundleAccessGrantSummary"}},"limit":{"type":"integer","minimum":1,"maximum":100,"example":50},"nextCursor":{"type":"string","description":"Opaque cursor to pass unchanged on the next request."}}},"CreateGrantRequest":{"type":"object","additionalProperties":false,"required":["userId","grantType"],"description":"Creates a bundle access grant. Use endsAt for exact paid period boundaries; omit it only for permanent access. paid_external grants require sourceId.","oneOf":[{"required":["grantType","sourceId"],"properties":{"grantType":{"type":"string","enum":["paid_external"]}}},{"properties":{"grantType":{"type":"string","enum":["owner_grant","referral_reward","gift"]}}}],"properties":{"userId":{"type":"string","pattern":"^[a-f0-9]{32}$","example":"7bb8d364a6984fbab05a06a6c7f85db2"},"grantType":{"type":"string","enum":["owner_grant","paid_external","referral_reward","gift"]},"endsAt":{"type":"string","format":"date-time","example":"2026-07-19T12:00:00.000Z"},"sourceId":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$","maxLength":256,"example":"stripe:invoice:in_123","description":"Visible ASCII dedupe key for external flows. Required for paid_external grants. Reuse for the same bundle, user, and grant type is rejected. Allowed characters: letters, digits, dot, underscore, colon, and dash."}}},"GrantMutationResponse":{"type":"object","required":["grant"],"properties":{"grant":{"$ref":"#/components/schemas/TradingBundleAccessGrantSummary"}}},"CheckoutDetails":{"type":"object","required":["checkoutId","bundleId","userId","displayName"],"description":"Short-lived checkout details for an owner checkout. price, currency, and discount are current bundle display terms; trialPeriodDays is intentionally not returned.","properties":{"checkoutId":{"type":"string","example":"5668c2dbeec242de9c78d21aa524d355"},"bundleId":{"type":"string","example":"2be97361321c46f2bc7300a04fd6d133"},"userId":{"type":"string","pattern":"^[a-f0-9]{32}$","example":"7bb8d364a6984fbab05a06a6c7f85db2"},"displayName":{"type":"string","example":"TraderAlex"},"price":{"type":"number","example":49},"currency":{"type":"string","example":"USDT"},"discount":{"type":"object","properties":{"type":{"type":"string","enum":["fixed","percent"]},"value":{"type":"number","example":10}}}}},"RateLimitResponse":{"type":"object","required":["success","error"],"properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"}}},"ErrorResponse":{"type":"object","required":["errorCode","message"],"properties":{"errorCode":{"type":"string","example":"errors.vector.access_denied"},"message":{"type":"string","example":"You are not authorized to perform this operation"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"requestId":{"type":"string"}}}}},"security":[{"bearerAuth":[]}],"paths":{"/v1/bundles":{"get":{"operationId":"listBundles","x-api-key-permission":{"scope":"bundles","level":"read"},"summary":"List your bots bundles","description":"Returns non-archived bots bundles owned by the API key owner. Source reads are bounded, so an archived-heavy page can be partial or empty while nextCursor is present. Continue until nextCursor is absent.","parameters":[{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"},"description":"Opaque cursor from the previous response."}],"responses":{"200":{"description":"Owned bots bundles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundlesResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/users":{"get":{"operationId":"searchUsers","x-api-key-permission":{"scope":"users","level":"read"},"summary":"Search users by name","parameters":[{"in":"query","name":"displayName","required":true,"schema":{"type":"string","minLength":2,"maxLength":30},"description":"Display name prefix searched across active users except the API key owner."},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"},"description":"Opaque cursor from the previous response. Keep displayName unchanged between pages."}],"responses":{"200":{"description":"Search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersSearchResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/checkout/{checkoutId}":{"get":{"operationId":"getCheckout","x-api-key-permission":{"scope":"grants","level":"read"},"summary":"Get checkout session","description":"Requires grants:read and the bundle owner, even for expanded roles. Returns a short-lived checkout session including current bundle display payment terms.","parameters":[{"in":"path","name":"checkoutId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Checkout details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutDetails"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Bundle, checkout session, grant or public user alias was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/bundles/{bundleId}/users":{"get":{"operationId":"listBundleUsers","x-api-key-permission":{"scope":"grants","level":"read"},"summary":"List users with bundle access","parameters":[{"in":"path","name":"bundleId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","pattern":"^(?:grant|scan):[a-f0-9]{32}$"},"description":"Opaque owner-scoped cursor from the previous response. A filtered page can be empty with nextCursor; continue until it is absent."}],"responses":{"200":{"description":"Users with active or scheduled grants","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleUsersResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Bundle, checkout session, grant or public user alias was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/bundles/{bundleId}/grants":{"get":{"operationId":"listBundleGrants","x-api-key-permission":{"scope":"grants","level":"read"},"summary":"List bundle access grants","description":"Returns non-revoked grants for the selected bundle, including expired grants. Missing or permanently deleted Accounts remain in the result without userId. Source reads are bounded, so a filtered page can be partial or empty while nextCursor is present. Keep filters and sorting unchanged and continue until nextCursor is absent.","parameters":[{"in":"path","name":"bundleId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"query","name":"userId","required":false,"schema":{"type":"string"},"description":"Viewer-scoped public user alias returned by the public users API."},{"in":"query","name":"grantType","required":false,"schema":{"$ref":"#/components/schemas/TradingBundleAccessGrantType"}},{"in":"query","name":"sourceId","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$","maxLength":256}},{"in":"query","name":"startsAfter","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"startsBefore","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"endsAfter","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"endsBefore","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"createdAfter","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"createdBefore","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"},"description":"Opaque cursor from the previous response. Keep filters and sorting unchanged between pages."},{"in":"query","name":"sort","required":false,"schema":{"type":"string","enum":["createdAt","startsAt","endsAt"],"default":"createdAt"}},{"in":"query","name":"dir","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"Non-revoked grants matching the search filters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleGrantsResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Bundle, checkout session, grant or public user alias was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"operationId":"createBundleGrant","x-api-key-permission":{"scope":"grants","level":"write"},"summary":"Create bundle access grant","description":"Requires grants:write. owner_grant uses the existing bundles:update permission, including expanded roles; paid_external, referral_reward and gift require the bundle owner and a sellable bundle. Omit endsAt for permanent access. Each external invoice uses a new sourceId; reuse for the same bundle, user and grant type returns 409. No automatic retry or permanent idempotency guarantee.","parameters":[{"in":"path","name":"bundleId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGrantRequest"}}}},"responses":{"200":{"description":"Created grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantMutationResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Bundle, checkout session, grant or public user alias was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"sourceId already exists for the same bundle, user, and grant type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"JSON request body is too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Request body must use application/json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/bundles/{bundleId}/grants/{grantId}":{"delete":{"operationId":"revokeBundleGrant","x-api-key-permission":{"scope":"grants","level":"write"},"summary":"Revoke bundle access grant","description":"Requires grants:write and the bundle owner, even for expanded roles. Revokes the selected grant and all current or future grants for the same user in this bundle that start after it.","parameters":[{"in":"path","name":"bundleId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"path","name":"grantId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Revoked grant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantMutationResponse"}}}},"400":{"description":"Invalid parameters, JSON body or domain state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, malformed, revoked or invalid account API key, or CIDR mismatch.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Insufficient key scope, account entitlement or bundle permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Bundle, checkout session, grant or public user alias was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"IP or API key rate limit exceeded; this envelope differs from ErrorResponse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}}},"500":{"description":"Server error; diagnostics are masked and requestId may be present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Infrastructure unavailable; an unconfirmed mutation must not be retried automatically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"default":{"description":"Other application error. HTTP infrastructure may also return an empty or non-JSON body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}