Introduction to APIs
6 min
Criado por Knowledge Engineering Team em 01/12/2020 17:46
Atualizado por Agente Zenvia - Jean em 09/08/2024 15:54

On this page

Glossary

Obtaining your Movidesk API token

Understanding JSON notation

 

Movidesk offers dozens of REST API resources so you can increase productivity and efficiency by easily integrating with other systems, or using ad hoc API requests to manage system records.

To use Movidesk APIs you will need to configure the integration with a third party system externally, or use a tool like Postman to make ad hoc API requests.

Note that we also have a number of standard integrations that do not require external configuration. We recommend verifying if the third party system you are looking to integrate with Movidesk has a standard integration available—if there is no standard integration, then the Movidesk APIs are the way to go.

The Movidesk APIs are easy to use, with thorough documentation and examples for every API resource. Authentication for the APIs is also simple, using an API token for authentication.

Glossary

 

REST API

An Application-Programming Interface built with the REST architecture. It defines the specifications for various interactions with a web service.

JSON

JavaScript Object Notation is a data format used by the Movidesk APIs to send and receive data.

HTTP method

Defines the type of action that should be performed upon receiving the API request. Movidesk APIs use the following methods:

  • GET – Request to retrieve data
  • POST – Request to submit data
  • PATCH – Request to update an Object
  • DELETE – Request to delete an Object

Note that HTTP methods are case sensitive.

Endpoint

A point of entry for API requests. Essentially, this is a specific URL used by one or more API Resources.

Resource

The specification for a type of interaction with a set Objects. Consists of a combination of an HTTP method, and an Endpoint.

Parameter

Each Resource has a set of parameters that are included in the request, which control how the API should behave upon receiving the request.

Object

Items that the API interacts with, usually corresponding to a record in Movidesk. All objects for the Movidesk API use the JSON data format, and are composed of a series of name-value pairs.

Property

One of the data components of an Object—specifically the “name” in one of the name-value pairs that comprise an object.

Query string

Set of parameters included in the URL of the API request. Parameter values located in the query string must be URL encoded.

URL encoded

URL encoding translates any unprintable characters on a string to special characters that are unambiguous to web browsers and servers.

 

Obtaining your Movidesk API token

Movidesk APIs use an API token to authenticate incoming API requests.

To obtain your API token, go to Configurations > Parameters. In the Environment tab, find the API section where you will see the API token, which has the following format:

XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

Warning

Warning Be careful not to share the Movidesk API token, as it can be used to maintain master files using the Movidesk APIs without needing any access profile permissions.

 

If you ever need to disable existing connections and integrations, you can generate a new API token by selecting Generate new token, which will immediately invalidate the previous token.

 

Understanding JSON notation

Movidesk APIs use JSON in the body of API requests and as part of API responses for many different Resources.

All data in JSON is written as name-value pairs in the following format:

"name":value

The Property name is the first part of the pair, which must always be enclosed in double quotation marks.

The second part of pair is the data stored in the Property. The value can be in one of these data types:

  • String
    • Must always be enclosed in double quotation marks.
  • Number
  • Object (JSON object)
  • Array
    • The list of values is enclosed in brackets [ ] and comma delimited.
    • Can be an array of values with any data type, including other arrays.
  • Boolean (true/false)
  • Null (null)

Objects are comprised of a list of comma delimited name-value pairs, and can be nested within the data structure.

Each Object begins with a left brace { and ends with a right brace } :

{
       "firstName":"Jason",
       "middleName":null,
       "lastName":"Smith",
       "age":34,
       "emails":[
             "jason@abccompany.com",
             "jsmith@gmail.com"
       ],
       "isActive":true
}
Classifique este artigo
Últimos artigos visitados