Shotcode Creation Service

ShotCode.com Creation Service allows you to create shotcodes on your account via API calls. This is a signed service - that means it requires an API key in order to work.


Service Endpoint

https://www.shotcode.com/services/v1/create_shotcode


Expected Parameters

  • - api_key [your account api key]
  • - url [the desired shotcode's url]
  • - notes [open text notes (up to 40 characters)]


Response Format

<create_shotcode>
 <shotcode id="[shotcode's unique id]" thumbnail="[url for a 150x150 png image]" image="[url for a 400x400 png image]" url="[shotcode's url]"/>
  <errors>
   <error code="[error code]">[some error message here]</error>
  </errors>
</create_shotcode>

Please note that there will only be one <shotcode> entry, and it will only be present when the shotcode is succesfully created. also, there can be one or more <error> entries, one per error message (for example, if no api key was provided). In case the <errors> node is present, no <shotcode> nodes will be shown.

Expected Error Codes

e001, e004, e025, e026, e031. The full list of error codes can be seen on the error codes section.