Retrieve a project domain
Fetch the details of a single domain attached to a project.
This is useful when:
you want to display the domain configuration in a dashboard
you want to confirm that a domain belongs to a project
you need to read domain flags like
is_active,is_primary, orhas_paid
Endpoint
GET /project/{project}/domain/{domain}
Full URL:
https://api.devpayr.dev/api/v1/project/{project}/domain/{domain}Note: This endpoint uses
/domain/{domain}(singular), while listing uses/domains(plural). This is intentional and matches the actual route definition.
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.
domain
integer
Yes
The ID of the project domain record to retrieve.
Access Rules
DevPayr enforces three access checks:
1) Project-scoped API key must match the project
If your API key is scoped to a project, it must match project in the URL.
Error (403)
2) Global API key must match project ownership
If your API key is global, it must belong to the same user who owns the project.
Error (403)
3) Domain must belong to the specified project
Even if you own the project, the domain ID must actually belong to that project.
Error (403)
Example Request
Response
Success (200)
On success, DevPayr returns the domain record wrapped in the standard response envelope and includes a specific message:
message:"Domain successfully loaded."
Example Response
The response excludes internal fields such as
user_id.
Caching Behavior
This endpoint caches results per API key + project + domain.
Cache TTL: 15 minutes
Cache key includes:
API key ID
project ID
domain ID
This improves repeated reads from dashboards or admin tools.
Errors
Missing API Key (401)
Invalid / Expired API Key (403)
Unauthorized (403)
Project-scoped mismatch:
Global key not owner:
Domain not tied to project:
Project or Domain Not Found (404)
Rate Limited (429)
Last updated