Create a Profile

POST

/api/v1/profiles

Creates a new Profile for a giver User, with the giver parameters.

Query Params

Name Type Descriptipon
label String Label of profile

Request

curl --location 'https://nanotrust.io/api/v1/profiles' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer YOUR_TOKEN' \
    --data '{"label": "test api"}'

Responses

200

Credential successfully created

{
    "id": null,
    "issuer_profile_id": null,
    "status": "pending",
    "kind": "diploma",
    "owner_name": "Mose Denesik JD",
    "owner_email": "susana@morissette.co",
    "data": {
        "start_time": "2021-07-01",
        "name": "Associate Degree in Computer Science"
    },
    "created_at": null,
    "updated_at": null,
    "review_token": null,
    "owner_profile_id": null,
    "wallet_status": "unsync",
    "owner_birth_date": "2020-07-05",
    "owner_birth_place": "Donnieville",
    "email_template_id": null,
    "mailjet_id": null,
    "mailjet_status": 0,
    "is_implicit_consent": false
}

401

Invalid token No access token was provided, please provide one in an Authorization header.

422

Invalid Credential parameters provided