# Get Risk Relationship Folder Names and Slugs source: https://developer.mastercard.com/riskrecon-api/documentation/testing/portfolio-samples/retrve-risk-reln-slugs-smpl/index.md Allows you to retrieve the risk relationship folder names and slugs of your portfolio. ## Pre-requisites {#pre-requisites} Refer to the [Retrieve Risk Relationship Folder Names and Slugs](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/portfolio-management/portfolio/retrve-risk-reln-slugs/index.md) use case. ## Request URL for the Sandbox environment {#request-url-for-the-sandbox-environment} GET https://api.sandbox.riskrecon.com/v1/portfolio/risk_relationships_folders ## Request URL for the Production environment {#request-url-for-the-production-environment} GET https://api.riskrecon.com/v1/portfolio/risk_relationships_folders ## Test Cases {#test-cases} ### Test Case: Success - Retrieve your risk relationship folders and slugs {#test-case-success---retrieve-your-risk-relationship-folders-and-slugs} **Request** Here is an example of a request made using a `curl` command. ```bash curl -X 'GET' \ 'https://api.riskrecon.com/v1/portfolio/risk_relationships_folders' \ -H 'accept: application/json' \ -H 'Authorization: valid_JWT' ``` **Response** get: ```json [ { "name": "Enterprise > Risk > Uncategorized > ", "slug": "uncategorized_" }, { "name": "Own Enterprise > Critical", "slug": "ownenterprise_critical" } ] ``` ### Test Case: Fail - Expired or Invalid JWT {#test-case-fail---expired-or-invalid-jwt} **Request** Here is an example, using a `curl` command, of a request made with an invalid JWT. ```bash curl -X 'GET' \ 'https:// 'https://api.sandbox.riskrecon.com/v1/portfolio/risk_relationships_folders' \ -H 'accept: application/json' \ -H 'Authorization: invalid_JWT' ``` **Response** HTTP Error Response 401 ```json { "Errors": { "Error": [ { "Description": "Unauthorized request", "Details": "Invalid JWT", "ReasonCode": "UNAUTHORIZED", "Recoverable": false, "Source": "RISKRECON_API" } ] } } ```