---
title: "Test protected endpoint"
method: GET
path: "/api/v1/external/test/protected"
tags: ["Testing"]
---

# Test protected endpoint

`GET /api/v1/external/test/protected`

## Request

- Base URL: `https://api.wove.com`
- URL: `https://api.wove.com/api/v1/external/test/protected`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/wove/apis/wove-external-api/docs/api/v1/external/test/protected/get.ts> (a function with typed inputs; its response is checked against the schema)

Test endpoint that requires authentication and specific scopes.
Use this to verify that your OAuth token has the correct permissions.

## Response `200`

Access granted

- object
  - `success` boolean
  - `data` object
    - `message` string
    - `customerId` string
    - `scopes` string[]

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions

---

[API](https://skmtc.dev/wove/apis/wove-external-api.md) - [All operations](https://skmtc.dev/wove/apis/wove-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wove/apis/wove-external-api/revisions/37290e267e07?raw)
