Description

You have to call this method when you want to create a new wApp in DRUID Identity allowing you to automatise integrations with us.

You will get all the information of the app (and entrypoint(s) created), as well as the password we have generated for you.
Be careful, because the password will only be returned once in the response, and if you need to consult it later, you must do it through the Cockpit.

Please, read first: https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token.

Endpoint URL:

 POST https://graph.{your-domain.com}/v2/apps

Request headers

HeaderDescriptionTypeRequiredValue
AuthorizationBearer {{app_token}}
Literal text Bearer followed by app_token that is the token returned by auth server with client_credentials flow
stringyesBearer {{app_token}}
Content-TypeThe type of content that will be used for requests to be JSONstringyesapplication/json
Accept-LanguageLanguage of this requestLocaleno

Request example

PathDescriptionTypeRequiredValue
objectTypeObject type of applicationstringyesapplication
keyOptional suffix of the id (client_id) of new app. WE will generate Ana aleatory numeric id and append you suffix: {generated-id}_{suffix}stringno
displayNameApp Name (human friendly)stringyes
urlUrl of web site of this App stringyes
contact.support.objectTypeObjectType of contact structure stringyesperson
contact.support.schemaOrg.email.valueSupport emailstringyes
contact.support.schemaOrg.mobile.valueSupport mobilestringyes
contact.projectManager.objectTypeObjectType of contact structurestringyesperson
contact.projectManager.schemaOrg.email.valuePM emailstringyes
contact.productOwner.objectTypeObjectType of contact structure stringyesperson
contact.productOwner.schemaOrg.email.valuePO emailstringyes
redirectUrisarray with one or more redirect Uris for this apparray[string]yes
organizationSchemaOrg.identifierkey of DruID Organisational Unit associated to this App (ask to DruID to give you this value)stringyes
organizationSchemaOrg.brandBrand key associated to this App (ask to DruID to give you this value)stringno
schemaOrg.applicationCategoryProperty Name associated to this App (ask to DruID to give you this value)Stringno
entrypoints.0.objectTypeObject type of entrypointstringyesentrypoint
entrypoints.0.displayNameEntrypoint Name (human friendly)stringyes
entrypoints.0.keyOptional suffix of the id of new entrypoint. We will append your suffix with app key: {client_id}_{suffix}stringno
entrypoints.0.assistedThe registration of consumers through this entrypoint is done through a third party.booleannodefault:false
entrypoints.0.fields.0.objectTypeObject type of fieldstringyesfieldConfig
entrypoints.0.fields.0.typeType of field, id if field key is email, phone_number (mobile), national_id, screen_name (fields that only allow 1 instance in database)id | fieldyesid
entrypoints.0.fields.0.keykey of idemail, phone_number (mobile), national_id, screen_name yes
entrypoints.0.fields.0.mainthis id will be used as main contact channel. if multiple id are used in entrypoint, one MUST me main, and therefore will be mandatory=true and requiresConfirmation=true booleanyes
entrypoints.0.fields.0.mandatoryfield is mandatory and must be filled by consumer in formbooleanyes
entrypoints.0.fields.0.requiresConfirmationthis id requires confirmation (true only valid for email, phone_numberbooleanyes
entrypoints.0.fields.0.requiresVerificationthis id requires verification (true only valid for national_id if you purchase Identity with FacePhi platform)booleannodefault:false
entrypoints.0.fields.1.objectTypeObject type of fieldstringyesfieldConfig
entrypoints.0.fields.1.typeType of field, in this example will be field (name, surname, birthday, …)stringyesfield
entrypoints.0.fields.1.keykey of field to use (one of existing in Identity)stringyes
entrypoints.0.fields.1.mandatoryfield is mandatory and must be filled by consumer in formbooleannodefault: true
entrypoints.0.fields.1.useForValidationif entrypoint is created as 2 steps and set to true, consumer will be asked for the value filled in the first step when clicking on the email button as a form of additional validation.booleannodefault: false
entrypoints.0.fields.1.stepif entrypoint is created as 2 steps , this value will define step where field is requested to consumerintegernodefault: 1
entrypoints.0.passwordlessifs true, this entrypoint des not request password for consumerbooleannofalse
entrypoints.0.typology.register.objectTypeObject type of typologystringyestypology
entrypoints.0.typology.register.idid of typology for registrationstringnodefault: consumer
entrypoints.0.typology.work.objectTypeObject type of typologystringyestypology
entrypoints.0.typology.work.idid of typology of workstringnodefault: value of typology.register.id

Response examples

Response: App created successfully

Response codes

CodeTypeDescription
201SucessApp created
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
403ErrorForbidden: user id or password are invalid
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request