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
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 indicatormessageβ usually"Success"dataβ the project objecterrorsβnullon success
Example Response
Project Object
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, anddeleted_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