Considering this sounds like an external API, this completely depends on the API you use. If SOAP is supported you could use a webservice in your model. If it supports REST, you could implement it using the REST module from the Appstore. If neither, you are probably looking at a java action.