Does the API trim the names I send? Yes. Names are trimmed. A control character such as a trailing line break is not trimmed: it is refused. More: The REST API, Requests and responses