The Project Object
Overviewβ
The Project object represents projects within your Verifik account. A Project is where all the information related to the company or entity that will use the authentication and validation services generated by Verifik is stored. This is done to ensure that your brand is represented correctly when using Verifik's services.
Attributesβ
nameβ
Type: String
Required: Yes
Name of the project.
allowedCountriesβ
Type: Array of String
Required: Yes
Countries where your project will be used. There must be defined properly otherwise Verifik can't send OTP to these countries.
contactEmailβ
Type: String
Required: Yes
Primary email address of the project owner.
privacyUrlβ
Type: String
Required: Yes
Link to your privacy policy.
termsAndConditionsUrlβ
Type: String
Required: Yes
Link to your terms and conditions.
clientβ
Type: ObjectId
Required: Yes
Reference to the client who owns this project.
statusβ
Type: String
Required: No
Status of the project. Can be:
active- Project is activeinactive- Project is inactivepending- Project is pending approval
brandingβ
Type: Object
Required: No
Branding information for the project:
logo- Project logo URLprimaryColor- Primary brand colorsecondaryColor- Secondary brand colorcustomDomain- Custom domain for the project
settingsβ
Type: Object
Required: No
Project-specific settings:
defaultLanguage- Default language for the projecttimezone- Project timezonewebhookUrl- Default webhook URL for notifications
createdAtβ
Type: Date
Required: Yes
Timestamp when the project was created.
updatedAtβ
Type: Date
Required: Yes
Timestamp when the project was last updated.
Allowed Countriesβ
The following countries are supported for allowedCountries:
| Country | Country | Country |
|---|---|---|
| "Argentina" | "Germany" | "Portugal" |
| "Australia" | "Guatemala" | "Puerto Rico" |
| "Austria" | "Honduras" | "Russia" |
| "Belgium" | "Ireland" | "Spain" |
| "Brazil" | "Italy" | "Sweden" |
| "Canada" | "Mexico" | "Switzerland" |
| "Chile" | "Netherlands" | "Trinidad and Tobago" |
| "Colombia" | "Nicaragua" | "United Kingdom" |
| "Costa Rica" | "Norway" | "United States" |
| "Ecuador" | "Panama" | "Uruguay" |
| "El Salvador" | "Paraguay" | "Venezuela" |
| "France" | "Peru" | "Vietnam" |
| "Yemen" | "Uzbekistan" |
Example Objectβ
{
"_id": "project_123456789",
"name": "Example Project",
"allowedCountries": ["Colombia", "United States"],
"contactEmail": "test@verifik.co",
"privacyUrl": "https://example.com/privacy",
"termsAndConditionsUrl": "https://example.com/terms",
"client": "client_123456789",
"status": "active",
"branding": {
"logo": "https://example.com/logo.png",
"primaryColor": "#007bff",
"secondaryColor": "#6c757d",
"customDomain": "auth.example.com"
},
"settings": {
"defaultLanguage": "en",
"timezone": "UTC",
"webhookUrl": "https://example.com/webhook"
},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}