{"_id":"5d3942131ee42b001e33f66f","project":"542c6f8dddd3190e00228898","version":{"_id":"5912369265888319004e555f","__v":2,"project":"542c6f8dddd3190e00228898","createdAt":"2017-05-09T21:37:22.992Z","releaseDate":"2017-05-09T21:37:22.992Z","categories":["5912369465888319004e5560","5912369465888319004e5561","5912369465888319004e5562","5d3940ed4c6ef200427daf54"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"category":{"_id":"5d3940ed4c6ef200427daf54","project":"542c6f8dddd3190e00228898","version":"5912369265888319004e555f","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2019-07-25T05:41:01.607Z","from_sync":false,"order":0,"slug":"setup","title":"Setup"},"user":"542c6f2d42d04c1400426315","__v":0,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2019-07-25T05:45:55.729Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"In order to make use of the API, a user will need API keys and access tokens (optional).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"1. API Key\"\n}\n[/block]\nRequest a token by clicking on \"Request API Token\" link at the top of the page. Fill out the [form](https://docs.google.com/forms/d/e/1FAIpQLSf1D_tjaQHtQkPeCycNjwP8gmuipAR_S1ok73olf5ijgwYYzw/viewform) and we will get back to you with an API token if your supplied email is associated with a campaign.\n[block:api-header]\n{\n  \"title\": \"2. Access Token\"\n}\n[/block]\nThe API token must be used with an access token in order to retrieve sensitive information from the campaign such as shipping addresses, emails, etc.\n\nTo generate your access_token, just run the following curl command (be sure to use the credentials for the indiegogo account you'll be using to link to campaigns as a team member):\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST -d grant_type=password -d credential_type=email -d email=[EMAIL] -d password=[PASSWORD] https://auth.indiegogo.com/oauth/token \",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n`access_token` may expire, so you may need to re-generate it using the above command.","excerpt":"","slug":"setup-api-access","type":"basic","title":"Setup API access"}
In order to make use of the API, a user will need API keys and access tokens (optional). [block:api-header] { "type": "basic", "title": "1. API Key" } [/block] Request a token by clicking on "Request API Token" link at the top of the page. Fill out the [form](https://docs.google.com/forms/d/e/1FAIpQLSf1D_tjaQHtQkPeCycNjwP8gmuipAR_S1ok73olf5ijgwYYzw/viewform) and we will get back to you with an API token if your supplied email is associated with a campaign. [block:api-header] { "title": "2. Access Token" } [/block] The API token must be used with an access token in order to retrieve sensitive information from the campaign such as shipping addresses, emails, etc. To generate your access_token, just run the following curl command (be sure to use the credentials for the indiegogo account you'll be using to link to campaigns as a team member): [block:code] { "codes": [ { "code": "curl -X POST -d grant_type=password -d credential_type=email -d email=[EMAIL] -d password=[PASSWORD] https://auth.indiegogo.com/oauth/token ", "language": "curl" } ] } [/block] `access_token` may expire, so you may need to re-generate it using the above command.