List injectables

List all injectables created under a specific project.

This endpoint returns injectable metadata only (no file/content payload). Use it to:

  • display injectables in your dashboard

  • find an injectable ID/slug to retrieve or update later

  • paginate through injectables under a project

Endpoint

GET /project/{project}/injectables

Full URL:

https://api.devpayr.dev/api/v1/project/{project}/injectables

Authentication

Required: API Key

Send your API key using:

X-API-KEY: <your_api_key>

Path Parameters

Parameter
Type
Required
Description

project

integer

Yes

The ID of the project to fetch injectables for.


Query Parameters

Parameter
Type
Required
Description

per_page

integer

No

Number of items per page. Default: 20. Max: 50.

cursor

string

No

Cursor token for pagination (from next_cursor).

Example Request

Injectable Fields Returned

Each item in data.data[] includes:

Field
Type
Description

id

integer

Injectable ID.

title

string

Human-friendly name.

slug

string

Unique slug identifier.

type

string

Injectable type (e.g. script/file type depending on your system).

mode

string

How the injectable is applied (depends on your SDK/runtime mode).

target_path

string | null

Target file path this injectable is meant for (if applicable).

validate_endpoint

string | null

Optional endpoint to validate conditions before applying.

is_active

boolean

Whether the injectable is enabled.

only_if_paid

boolean

If true, injectable applies only when the project is marked as paid.

created_at

string (date-time)

When it was created.

updated_at

string (date-time)

When it was last updated.

Note: This endpoint intentionally does not return the injectable file/content.

Errors

Missing API Key (401)

Invalid / Expired API Key (403)

API key not recognized (403)

Project access denied (403)

If the API key is scoped to a different project:

If the API key doesn’t belong to the project owner:

Not Found (404)

Rate Limited (429)

Last updated