{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/identify","auth":"required","results":{"codes":[]},"settings":"","examples":{"codes":[{"name":"","language":"shell","code":"curl https://track.attributionapp.com/identify \\\n  -u YOUR_PROJECT_ID: \\\n  -d '{\"userid\": \"user_1234\", \"traits\": {\"email\": \"peter:::at:::initech.com\", \"created_at\": \"2017-03-04T01:07:47Z\"}}'"}]},"method":"endpoint","params":[]},"next":{"description":"","pages":[]},"title":"/identify","type":"endpoint","slug":"http-identify","excerpt":"You can use identify from the server to pass in traits for known IDs. These traits will only be tied to a browsing history when that user ID has been identified from the client using the JS API.","body":"Attribution app uses a HTTP Auth for all server-side functions.\n\nYour HTTPS request header should have a blank password and the username must be your \"Project ID\" from [Attribution app settings](https://dashboard.attributionapp.com/#!/settings)\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/0f0dbb0-Screen_Shot_2019-10-30_at_8.33.06_AM.png\",\n        \"Screen Shot 2019-10-30 at 8.33.06 AM.png\",\n        1440,\n        80,\n        \"#5cc38c\"\n      ]\n    }\n  ]\n}\n[/block]","updates":[],"order":1,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"560d77fa8bfb03170030ac12","createdAt":"2015-10-01T18:14:18.282Z","githubsync":"","parentDoc":null,"__v":4,"user":"560c92f2ac2859170013faa3","project":"560c93ad7e9b9d0d00ca81a2","category":{"sync":{"isSync":false,"url":""},"pages":["560d77ae772ec32d00fa585a","560d77fa8bfb03170030ac12","569c7befd326c80d0068f78c"],"title":"HTTP API (server-side)","slug":"http-api-server-side","order":2,"from_sync":false,"reference":true,"_id":"560d76d899bb5a0d0044f307","__v":3,"project":"560c93ad7e9b9d0d00ca81a2","version":"560c93ae7e9b9d0d00ca81a5","createdAt":"2015-10-01T18:09:28.082Z"},"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["560c93af7e9b9d0d00ca81a6","560c9d9399bb5a0d0044f220","560d76d899bb5a0d0044f307","560d76ee1ec45619006069ed","560d86e099bb5a0d0044f32e","560dba80373c0e0d0024ff3b","57c722ecdf19130e001fba5d","57c743d1b6f94a2200659903","58995ec083f743190077bbe2"],"_id":"560c93ae7e9b9d0d00ca81a5","project":"560c93ad7e9b9d0d00ca81a2","createdAt":"2015-10-01T02:00:14.709Z","releaseDate":"2015-10-01T02:00:14.709Z","__v":9}}

endpoint/identify

You can use identify from the server to pass in traits for known IDs. These traits will only be tied to a browsing history when that user ID has been identified from the client using the JS API.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Documentation

Attribution app uses a HTTP Auth for all server-side functions. Your HTTPS request header should have a blank password and the username must be your "Project ID" from [Attribution app settings](https://dashboard.attributionapp.com/#!/settings) [block:image] { "images": [ { "image": [ "https://files.readme.io/0f0dbb0-Screen_Shot_2019-10-30_at_8.33.06_AM.png", "Screen Shot 2019-10-30 at 8.33.06 AM.png", 1440, 80, "#5cc38c" ] } ] } [/block]

User Information

Try It Out

endpoint
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}