Retrieve a project

Fetch a single project’s details by ID.

Use this endpoint when:

  • a user selects a project from the project list and you need full details

  • you want to confirm project configuration (webhook URL, redirect URL, has_paid, etc.)

  • you want to validate access to a project when using a scoped API key

Endpoint

GET /project/{project}

Full URL:

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

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 retrieve.

Access Rules

DevPayr enforces access based on the API key scope:

If the API key is project-scoped

  • You can only retrieve the project the key is scoped to.

  • Trying to fetch any other project is blocked.

Failure (403)

If the API key is global

  • You can retrieve any project that belongs to the API key’s owner.

  • Trying to access another user’s project is blocked.

Failure (403)

Example Request

Response

Success (200)

DevPayr returns a standard response envelope:

  • status β†’ success indicator

  • message β†’ usually "Success"

  • data β†’ the project object

  • errors β†’ null on success

Example Response

Project Object

Field
Type
Description

id

integer

Project ID

name

string

Project name

slug

string

URL-friendly identifier

description

string | null

Optional description

default_redirect_url

string | null

Optional redirect destination (used by SDK when blocked/expired)

logo_url

string | null

Optional project logo

webhook_url

string | null

Optional webhook destination

meta

object/array

Metadata payload (freeform)

is_active

boolean

Whether the project is active

has_paid

boolean

Payment enforcement flag

locked_at

string | null

If present, project is locked

created_at

string

ISO timestamp

updated_at

string

ISO timestamp

Some internal fields are intentionally hidden (such as user_id, license_key_id, and deleted_at).

Caching Behavior

This endpoint caches the response per API key + project.

  • Cache TTL: 15 minutes

  • Cache key is derived from:

    • API key ID

    • project ID

    • request query parameters (if any)

This improves dashboard performance for repeated reads.

Errors

Missing API Key (401)

Invalid / Expired API Key (403)

Access Denied (403)

Project-scoped mismatch:

Global key but not owner:

Project Not Found (404)

Rate Limited (429)

Last updated