GET
/
v1
/
repos
/
{id}
/
projects
/
{project_id}
/
endpoints
Get repository endpoints for a specific project
curl --request GET \
  --url https://api.ghostsecurity.ai/v1/repos/{id}/projects/{project_id}/endpoints \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "items": [
    {
      "auth_n": false,
      "auth_z": false,
      "authn": {
        "implemented": true
      },
      "authz": {
        "implemented": true
      },
      "method": "POST",
      "path": "/api/v3/transfer",
      "path_template": "/api/v3/transfer"
    }
  ],
  "next_cursor": "eyJzb3J0X3ZhbHVlIjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJkb2N1bWVudF9pZCI6InJlcG8xMjMiLCJzb3J0X2ZpZWxkIjoiY3JlYXRlZF9hdCJ9"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Repository ID

project_id
string
required

Project ID

Query Parameters

cursor
string

Pagination cursor

sort
enum<string>
default:created_at

Sort field

Available options:
created_at,
updated_at,
path_template
order
enum<string>
default:desc

Sort order

Available options:
asc,
desc
size
integer
default:100

Page size

Required range: 1 <= x <= 1000

Response

200
application/json

OK

The response is of type object.