{"type":"api","title":"Get MSP Customer API Keys","meta":{"id":"/apps/pubhub/media/legacy-umbrella-api/bf58de618cbb72dda8f39b0414ce94c0a15cd467/749b3a73-c1a2-3c03-8a59-0be6ab11a602","swagger":"2.0","info":{"title":"Service Providers","version":"1.0.0","description":"Service Providers and Managed Service Providers (MSPs)","contact":{"name":"Cloud Security Developer Community"}},"host":"management.api.umbrella.com","basePath":"/v1","schemes":["https"],"securityDefinitions":{"http":{"type":"basic"}},"security":[{"http":[]}],"x-parser-conf":{"httpBasic":{"username":"","password":""},"overview":{"markdownPath":"legacy/management/service-providers-overview.md"},"meta":{"useProxy":true}}},"spec":{"tags":["Managed Service Providers"],"description":"List the API keys for the MSP customer","summary":"List API keys for MSP Customer","operationId":"getMSPCustomerAPIKeys","parameters":[{"name":"mspId","type":"integer","description":"The ID of the Managed Service Provider (MSP)","in":"path","required":true,"$$ref":"#/parameters/managedProviderIdParam"},{"name":"customerId","type":"integer","description":"The customer ID","in":"path","required":true,"$$ref":"#/parameters/customerIdParam"}],"responses":{"200":{"description":"List the API keys for the MSP customer","schema":{"type":"array","items":{"type":"object","properties":{"keyName":{"type":"string","description":"The name of the service. which the key can authorize."},"keyId":{"type":"string","description":"The API key ID"},"customerId":{"type":"string","description":"The customer ID of the user that owns the key"},"key":{"type":"string","description":"The API key"},"createdAt":{"type":"string","format":"date-time","description":"The time when the key was created. Specified as an ISO 8601 timestamp."},"updatedAt":{"type":"string","format":"date-time","description":"The time when the key was updated. Specified as an ISO 8601 timestamp."}},"required":["keyName","keyId","customerId","key","createdAt","updatedAt"],"example":{"keyName":"key-service","keyId":"12344jkajkdjsf","customerId":"123455zasj","key":"123254345346a","createdAt":"2022-06-13T16:07:07.222Z","updatedAt":"2022-06-13T16:07:07.222Z"},"$$ref":"#/definitions/KeyResponse"}}},"400":{"description":"Bad Request","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":400,"description":"the http error code returned"},"error":{"type":"string","example":"Validation Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"},"validationErrors":{"type":"object","properties":{"someProperty":{"type":"string","example":"must not be empty","description":"the name of the property failing validation."}}}}},"$$ref":"#/responses/BadRequest"},"401":{"description":"Unauthorized","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":401,"description":"The authorization header is missing or the token is unauthorized"},"error":{"type":"string","example":"Unauthorized","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Unauthorized"},"403":{"description":"Forbidden","schema":{"type":"object","minProperties":1,"required":["message"],"properties":{"statusCode":{"type":"integer","example":403,"description":"the http error code returned"},"error":{"type":"string","example":"Forbidden, Invalid authentication credentials","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/Forbidden"},"404":{"description":"Not Found","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":404,"description":"the http error code returned"},"error":{"type":"string","example":"Not Found","description":"A resource that is specified in the URL was not found."},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/NotFound"},"500":{"description":"Internal Server Error","schema":{"type":"object","minProperties":3,"required":["statusCode","error","txId"],"properties":{"statusCode":{"type":"integer","example":500,"description":"the http error code returned"},"error":{"type":"string","example":"Internal Server Error","description":"a brief description of the error"},"txId":{"type":"string","example":"86e189a6-0124-47d3-a32c-25ff3f07deaf","description":"a unique hex number that can be used for debugging"}}},"$$ref":"#/responses/ServerError"}},"__originalOperationId":"getMSPCustomerAPIKeys","consumes":["application/json"],"produces":["application/json"],"security":[{"http":[]}],"method":"get","path":"/msps/{mspId}/customers/{customerId}/apikeys"}}