{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:amazonaws-sso/get-role-credentials":{"get":{"operationId":"cloud_amazonaws_sso_get_role_credentials","summary":"Returns the STS short-term credentials for a given role name that is assigned to the user.","description":"GET /federation/credentials","tags":["cloud"],"parameters":[{"name":"region","in":"query","required":false,"description":"The AWS region","schema":{"type":"string","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1","description":"The AWS region"}},{"name":"role_name","in":"query","required":true,"description":"The friendly name of the role that is assigned to the user.","schema":{"type":"string","description":"The friendly name of the role that is assigned to the user."}},{"name":"account_id","in":"query","required":true,"description":"The identifier for the AWS account that is assigned to the user.","schema":{"type":"string","description":"The identifier for the AWS account that is assigned to the user."}},{"name":"x-amz-sso_bearer_token","in":"query","required":true,"description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide .","schema":{"type":"string","description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide ."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:amazonaws-sso/list-account-roles":{"get":{"operationId":"cloud_amazonaws_sso_list_account_roles","summary":"Lists all roles that are assigned to the user for a given AWS account.","description":"GET /assignment/roles","tags":["cloud"],"parameters":[{"name":"region","in":"query","required":false,"description":"The AWS region","schema":{"type":"string","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1","description":"The AWS region"}},{"name":"next_token","in":"query","required":false,"description":"The page token from the previous response output when you request subsequent pages.","schema":{"type":"string","description":"The page token from the previous response output when you request subsequent pages."}},{"name":"max_result","in":"query","required":false,"description":"The number of items that clients can request per page.","schema":{"type":"integer","description":"The number of items that clients can request per page."}},{"name":"x-amz-sso_bearer_token","in":"query","required":true,"description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide .","schema":{"type":"string","description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide ."}},{"name":"account_id","in":"query","required":true,"description":"The identifier for the AWS account that is assigned to the user.","schema":{"type":"string","description":"The identifier for the AWS account that is assigned to the user."}},{"name":"maxResults","in":"query","required":false,"description":"Pagination limit","schema":{"type":"string","description":"Pagination limit"}},{"name":"nextToken","in":"query","required":false,"description":"Pagination token","schema":{"type":"string","description":"Pagination token"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:amazonaws-sso/list-accounts":{"get":{"operationId":"cloud_amazonaws_sso_list_accounts","summary":"Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the…","description":"GET /assignment/accounts","tags":["cloud"],"parameters":[{"name":"region","in":"query","required":false,"description":"The AWS region","schema":{"type":"string","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1","description":"The AWS region"}},{"name":"next_token","in":"query","required":false,"description":"(Optional) When requesting subsequent pages, this is the page token from the previous response output.","schema":{"type":"string","description":"(Optional) When requesting subsequent pages, this is the page token from the previous response output."}},{"name":"max_result","in":"query","required":false,"description":"This is the number of items clients can request per page.","schema":{"type":"integer","description":"This is the number of items clients can request per page."}},{"name":"x-amz-sso_bearer_token","in":"query","required":true,"description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide .","schema":{"type":"string","description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide ."}},{"name":"maxResults","in":"query","required":false,"description":"Pagination limit","schema":{"type":"string","description":"Pagination limit"}},{"name":"nextToken","in":"query","required":false,"description":"Pagination token","schema":{"type":"string","description":"Pagination token"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:amazonaws-sso/logout":{"post":{"operationId":"cloud_amazonaws_sso_logout","summary":"Removes the locally stored SSO tokens from the client-side cache and sends an API call to the IAM Identity…","description":"POST /logout","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["x-amz-sso_bearer_token"],"properties":{"region":{"type":"string","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1","description":"The AWS region"},"x-amz-sso_bearer_token":{"type":"string","description":"The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide ."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}