Credentials

List of endpoints related to the credentials.

Endpoints

Obtain credential(s)

GET https://dl3arn.com/api/v1/credentials

Get credentials from a collection using the address of the collection. Using the credential ID returns only 1 credential.

Query Parameters

{
    data: CredentialModel | CredentialModel[],
    error: null,
    status: 200,
    success: true
}

Create credential(s)

POST https://dl3arn.com/api/v1/credentials

Create a new credential.

Query Parameters

Headers

Request Body

{
    data: CredentialModel,
    error: null,
    status: 200,
    success: true
}

Claim credential(s)

PUT https://dl3arn.com/api/v1/credentials

Endpoint to claim the NFT, using the address of the user and the ID of the credential.

Path Parameters

{
    data: { 
        tx_hash: string;
        credential: CredentialModel;
    };
    error: null;
    success: true;
    status: 200;
}

Validate Credential(s)

GET https://dl3arn.com/api/v1/credentials/validate/[transaction_hash]

Validate credentials using the NFT creation hash and the collection address.

Path Parameters

Query Parameters

{
    data: {
        events: { tx_hash: string; from: string; to: string }[]
        validated: boolean;
    };
    error: null;
    status: 200;
    success: true;
}

Models used

Last updated