CorebanqCorebanq Developer Docs
Usersv1Credentials

Add credential

Add new credential to user

POST/v1/users/credentials

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/users/credentials" \  -H "Content-Type: application/json" \  -d '{    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",    "credential_type": "email",    "credential_value": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "credential_type": "email",
  "credential_value": "string",
  "active": true,
  "verified": true,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "code": "users_m.invalid_user_input",
  "message": "Invalid user input data"
}