Retrieve a license

Fetch the details of a single license that belongs to a project.

This endpoint is useful when you want to:

  • view license configuration (domain limits, usage limits, test/prod mode, etc.)

  • confirm license status before revoking/reactivating

  • build a dashboard β€œlicense details” page

Endpoint

GET /project/{project}/licenses/{license}

Full URL:

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

Authentication

βœ… Required: API Key

Send your API key using:

X-API-KEY: <your_api_key>

This endpoint does not accept license authentication.

Path Parameters

Parameter
Type
Required
Description

project

integer

Yes

The ID of the project.

license

integer

Yes

The ID of the license record (not the license key string).

Access Rules

DevPayr enforces access in this order:

1) The license must belong to the project

If the {license} you passed is not part of the {project}, DevPayr returns a 404.

Error (404)

2) Project-scoped API key must match the project

If your API key is scoped to a specific project, it must match {project}.

Error (403)

3) Global API key must match project ownership

If your API key is global, it must belong to the project owner.

Error (403)

Example Request

Response

Success (200)

DevPayr returns the license record in the standard response envelope.

Example Response

What is the Actual License Key?

In DevPayr, the value that the customer/SDK uses as the license key is:

βœ… uuid

Example:

That is what can be sent as:

  • X-LICENSE-KEY: <uuid>

  • or license=<uuid> in the query/body (depending on the endpoint)

Hidden Fields

This endpoint hides internal fields that should never be exposed publicly:

  • uuid_hash (stored hashed license)

  • validate_against (internal enforcement mode field)

  • user_id (internal owner id)

Everything else is returned as part of the license record.

Caching Behavior

This endpoint caches the response:

  • Cache TTL: 15 minutes

  • Cache key includes:

    • API key ID

    • project ID

    • license ID

This makes repeated dashboard reads faster.

Errors

Missing API Key (401)

Invalid / Expired API Key (403)

Unauthorized (403)

Project-scoped mismatch:

Global key not owner:

License Not Found / Not in Project (404)

Wrong project-license pairing:

Generic not found:

Rate Limited (429)

Last updated