{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"60276f2c-4549-4f51-95ee-27b6bb69c86a","name":"CoFoundersLab API v2.0 Doc","description":"CoFoundersLab private API.\n\n# Push Notifications\nTo send push notifications, you will have to send the Environment by http header with the next values: debug, test, staging, production.\n\n# Security\nTo access any endpoint you must get a acces_token, which will be sent as a get parameter.\n\nTo obtain access_token you must use OAuth2 Access Token.\n\nTo refresh access with another token, you must use OAuth2 Refresh Token.\n\n# Responses\n## Error Object\n| Parameter | Type  | Description  | \n| - |-|-|\n| code | Integer | Code number |\n| constraint | String | Constraint Violated |\n```javascript\n{\n  \"errors\": [\n    {\n      \"intention\": {\n        \"code\": 1003,\n        \"constraint\": \"NotNull\"\n      }\n    },\n    {\n      \"intention\": {\n        \"code\": 1001,\n        \"constraint\": \"NotBlank\"\n      }\n    }\n  ]\n}\n```\n\n# Error Codes\n\n## Basic Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1000 | Unknown |Validation not recognized|\n|1001 | NotBlank |Validates that a value is not blank|\n|1002 | Blank |Validates that a value is blank|\n|1003 | NotNull |Validates that a value is not strictly equal to null|\n|1004 | IsFalse |Validates that a value is false|\n|1005 | IsNull |Validates that a value is exactly equal to null|\n|1006 | IsTrue |Validates that a value is true|\n|1007 | Type |Validates that a value is of a specific data type|\n|2001 | NotBlankButNull |Validates that a value is not blank but equal to null|\n\n## String Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1101 | Email |Validates that a value is a valid email address|\n|1102 | Length |Validates that a given string length is between some minimum and maximum value|\n|1103 | Url |Validates that a value is a valid URL string|\n|1104 | Regex |Validates that a value matches a regular expression|\n|1105 | Ip |Validates that a value is a valid IP address|\n|1106 | Uuid |Validates that a value is a valid Universally unique identifier (UUID) per RFC 4122|\n\n## Number Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1201 | Range |Validates that a given number is between some minimum and maximum number|\n\n## Comparison Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1301 | EqualTo |Validates that a value is equal to another value, defined in the options|\n|1302 | NotEqualTo |Validates that a value is not equal to another value, defined in the options|\n|1303 | IdenticalTo |Validates that a value is identical to another value, defined in the options|\n|1304 | NotIdenticalTo |Validates that a value is not identical to another value, defined in the options|\n|1305 | LessThan |Validates that a value is less than another value, defined in the options|\n|1306 | LessThanOrEqual |Validates that a value is less than or equal to another value, defined in the options|\n|1307 | GreaterThan |Validates that a value is greater than another value, defined in the options|\n|1308 | GreaterThanOrEqual |Validates that a value is greater than or equal to another value, defined in the options|\n\n## Date Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1401 | Date |Validates that a value is a valid date, meaning either a DateTime object or a string (or an object that can be cast into a string) that follows a valid YYYY-MM-DD format|\n|1402 | DateTime |Validates that a value is a valid \"datetime\", meaning either a DateTime object or a string (or an object that can be cast into a string) that follows a specific format.|\n|1403 | Time |Validates that a value is a valid time, meaning either a DateTime object or a string (or an object that can be cast into a string) that follows a valid \"HH:MM:SS\" format|\n\n## Collection Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1501 | Choice |This constraint is used to ensure that the given value is one of a given set of valid choices|\n|1502 | Collection |This constraint is used when the underlying data is a collection|\n|1503 | Count |Validates that a given collection's element count is between some minimum and maximum value|\n|1504 | Language |Validates that a value is a valid language Unicode language identifier|\n|1505 | Locale |Validates that a value is a valid locale|\n|1506 | Country |Validates that a value is a valid ISO 3166-1 alpha-2 country code|\n\n## File Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1601 | File |Validates that a value is a valid \"file\"|\n|1602 | Image |The Image constraint works exactly like the File constraint, except that its mimeTypes and mimeTypesMessage options are automatically setup to work for image files specifically|\n\n## Financial and other Number Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1701 | Bic |This constraint is used to ensure that a value has the proper format of a Business Identifier Code (BIC)|\n|1702 | CardScheme |This constraint ensures that a credit card number is valid for a given credit card company|\n|1703 | Currency |Validates that a value is a valid 3-letter ISO 4217 currency name|\n|1704 | Issn |Validates that a value is a valid International Standard Serial Number (ISSN)|\n|1705 | Luhn |This constraint is used to ensure that a credit card number passes the Luhn algorithm|\n|1706 | Iban |This constraint is used to ensure that a bank account number has the proper format of an International Bank Account Number (IBAN)|\n|1707 | Isbn |This constraint validates that an International Standard Book Number (ISBN) is either a valid ISBN-10 or a valid ISBN-13|\n\n## Other Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|1801 | All |When applied to an array (or Traversable object), this constraint allows you to apply a collection of constraints to each element of the array|\n|1802 | Callback |The purpose of the Callback constraint is to create completely custom validation rules and to assign any validation errors to specific fields on your object|\n|1803 | Expression |This constraint allows you to use an expression for more complex, dynamic validation|\n|1804 | Valid |This constraint is used to enable validation on objects that are embedded as properties on an object being validated|\n\n## City Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2002 | ExistingCityIdConstraint |Validates if City Id exist|\n\n## Account Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2101 | EmailUniquenessConstraint |Validates if email is unique|\n|2102 | ExistingEmailConstraint |Validates if email exist|\n|2103 | ExistingIdConstraint |Validates if User Id exist|\n|2104 | PasswordConstraint |Validates password format /^(?=.*[A-Z])(?=.*[0-9]).{8,}$/ |\n|2105 | UserPasswordConstraint |Validates password format /^(?=.*[A-Z])(?=.*[0-9]).{8,}$/|\n\n## Connection Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2201 | ConnectedUsersConstraint |Validates if users are connected|\n|2202 | ExistingConnectionRequestConstraint |Validates if users are pending connection|\n|2203 | UniqueConnectionRequestConstraint |Validates if users aren't connection with status pending or accepted|\n\n## Discuss Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2301 | AllowedVoteActionConstraint |Validates that user is not trying to multiple up/down vote|\n|2302 | ExistingItemIdConstraint |Validates that Item id exist|\n|2303 | ExistingTopicIdConstraint |Validates that Topic id exist|\n|2304 | ExistingTopicNameConstraint |Validates that Topic name exist|\n|2305 | ItemIsQuestionConstraint |Validates if Item is question type|\n|2306 | UniqueTopicUrlConstraint |Validates if Topic url exist|\n|2307 | UniqueUrlConstraint |Validates if Item url exist|\n|2308 | UserIdOrIpAddressConstraint |Validates if User id or Ip address is setted|\n|2309 | ValidContentConstraint |Validates if Content is correct|\n|2310 | ValidVoteValueConstraint |Validates that vote value is present in Action|\n\n## Event Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2401 | ExistingEventEditionIdConstraint |Validates that Event edition id exist|\n|2402 | ExistingEventIdConstraint |Validates that Event id exist|\n|2403 | ExistingEventOrganizerIdConstraint |Validates that Event Organizer id exist|\n|2404 | ExistingEventPartnerIdConstraint |Validates that Event Partner id exist|\n|2405 | ExistingEventTestimonialIdConstraint |Validates that Event Testimonial id exist|\n\n## Conversation Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2501 | ExistingConversationIdConstraint |Validates that Conversation id exist|\n|2502 | ExistingMessageIdConstraint |Validates that Message id exist|\n|2503 | ExistingParticipantIdConstraint |Validates that Participant id exist|\n\n## Profile Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2601 | ExistingProfileIdConstraint |Validates that Profile id exist|\n\n## Subscription Errors\n| Code | Constraint  | Description  | \n| - |-|-|\n|2701 | ActivePlanConstraint |Validates that passed value exists as an Id on the plans|\n|2702 | CouponUniquenessConstraint |Validates if Coupon not exist|\n|2703 | NullOrExistingCouponStripeIdConstraint ||\n|2704 | ExistingPlanStripeIdConstraint |Validates that passed value exists as an Id on the plans. If passed a null value, validation gets bypassed.|\n|2705 | NullOrExistingPlanStripeIdConstraint |Validates that passed value exists as an Id on the plans. If passed a null value, validation gets bypassed.|\n|2706 | PlanUniquenessConstraint |Validates if this Plan not exist|\n|2707 | SubscriptionActiveConstraint |Validates that passed value exists as an Id on the Subscription|\n|2708 | SubscriptionUniquenessConstraint |Validates if this Subscription not exist|\n\n## Error Exceptions\n| Code | Constraint  | Description  | \n| - |-|-|\n|3001 | OAuth2ServerException | OAuth2 errors that require termination of OAuth2 due to an error. |\n|3002 | AccessDeniedHttpException | Access denied to this endpoint |\n|3003 | UsernameNotFoundException | User not exist |\n|3004 | InvalidArgumentException | If an argument does not match with the expected value |\n\n# Common Responses\n| Response | Description  | \n| - |-|\n| 401 | Access Denied |\n| 500 | Internal Server Error |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"1975309","team":43485,"collectionId":"60276f2c-4549-4f51-95ee-27b6bb69c86a","publishedId":"6tf1hmS","public":true,"publicUrl":"https://apidoc.cofounderslab.com","privateUrl":"https://go.postman.co/documentation/1975309-60276f2c-4549-4f51-95ee-27b6bb69c86a","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","version":"8.10.1","publishDate":"2017-10-11T14:40:34.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/c4cfce131f3e9a2af3a3fe35a7fce17fc54e582920e917399e889dca1098c616","favicon":"https://cofounderslab.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://apidoc.cofounderslab.com/view/metadata/6tf1hmS"}