Query builder

Call URL:
Dynamic field:
Endpoint
format
Welcome to the Endpoints doc!
  • All calls are made either with a session token, or with the session's current rights. API results are here called within your own session and are thus displayed with your own rights. To test in your environment, you will find this guide on your own custoware, in your preferences, menu 'endpoints'.
  • You can pass the token as a GET/POST variable (token) or in headers (Authorization Bearer or Authorization Basic).
  • You can obtain the data in JSON, XML or HTML format.
  • For POST actions, you can send the data either as POST variables (using dot notation var.subvar for sub-variables and array [] for arrays), or as a JSON object.
  • When called within a doc with the dynamic variable, the data is processed server-side and included into the HMTL sent to the browser, with positive consequences: an HTML result can be indexed by robots (you can then hide the raw HTML and process it with javascript or directly style it with CSS); a JSON or XML output can be immediately processed without a 2nd query. Example use: build your own 1-page website and use Custoware as headless server.
  • PRO TIPS (aka 'less is more'):
    • You can group queries; example: /json/doc,answers,chat,kb/30 will give you all document info, all knowledgebase elements, all survey answers and all chats from doc 30 in one call.
    • You can group docs; example: /json/doc/30,31,32,33 will give you all document infos for these 4 docs.
    • You can mix both: /json/doc,answers,chat,kb/30,31,32,33
    • For performance reasons, all queries are dynamically cached at session level. For public data, the cache is common to all unidentified sessions. To force refresh, add forcecache=1 to the variables. (Don't hardcode your queries with forcecache=1 unless you want to ruin performance, use it only when necessary.)

Endpoint list

EndpointUsageResultArguments

GET account

Get account elementsaccount
  • like_accounts: (todo)
  • from: date
  • to: date
  • GET agenda

    Get dates from agenda. Public dates if no token. Id is groupidagenda
  • id: Group id
  • GET analysis

    get analysis for a surveyresults
  • id: doc id
  • subid: question id
  • idinscription: inscription id
  • idgens: contact
  • idnumreponse: answer id
  • GET answer

    Get my answers to question(s)q#ID
  • id: question id[,question id...] or [:question id...] to concat
  • GET answers

    Get answers to question(s) by all contactsq#ID
  • id: question id[,question id...] or [:question id...] to concat
  • GET contact

    get contact data. If login/pass sent, returns contact id. If ID sent, returns a json_contact object.contact
  • id: contact id
  • login: contact login
  • pass: contact pass
  • answer: question id[,question id...]
  • GET db

    Export database contents
  • id: doc id[,doc id]
  • subid: line id
  • action: flat,norel,noexpand,fullchilds,fieldname(=fullchilds for this field only)
  • GET doc

  • GET docs

  • GET docimages

  • GET docimages_valid

  • GET enquiry

  • GET friends

    Get contacts related to mecontacts
  • id: 'hierarchy' or search string (email/ name/ idcontact(,s))
  • GET groups

    Get groupsgroups
  • id: category
  • GET hierarchy

    Get contact hierarchy for a survey, registration or analysis document
  • id: doc id
  • GET kb

    Knowledgebase
  • id: doc id
  • subid: kb id
  • search: search terms
  • GET inscr

    Register a user. Send login to ask if exists (needs public token).
  • json[login]: Object containing: firstname,name,group,folder,zone,
  • GET list

    Get contacts in a listcontacts
  • id: list id[,list id...]
  • GET log

    Get logslogs
  • contact: contact id
  • s: s
  • id: doc id
  • subid: doc subid
  • sincedays: since days
  • 0: sincedate
  • 1: since date
  • GET login

    Welcome! Send login to ask if exists. Send login/pass, USER/PW credits, or token to login.login,token
  • login: login
  • pass: pass
  • token: token
  • answer: question id[,question id...]
  • GET logout

    Goodbye! (don't try the API result, you'd be disconnected)login
  • GET mail

    Get emailsmails
  • contact: contact id
  • group: group id
  • sincedays: since days
  • 0: sincedate
  • 1: since date
  • search: search query string
  • GET myanswers

    Get my answers to a survey
  • id: doc id (empty: all my qualification answers)
  • GET questions

    Get survey questionsquestions
  • id: doc id
  • GET tags

    Get tags
  • GET token

  • GET zones

    Get publication zoneszones
  • POST chatedit

    updated
  • POST contactedit

    cc
  • POST dbedit

    dd
  • POST docedit

    dd
  • POST docimageedit

    dd
  • POST friend

    ff
  • POST ilike

    ii
  • POST idislike

    ii
  • POST unfriend

    uu
  • POST storeanswer

    ss
  • POST storeanswers

    ss
  • ()
    Custoware
     
    O