Contacts

List all contacts

get
Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Query parameters
pageintegerOptional

A page number within the paginated result set.

company__idintegerOptional

The primary key of a company to filter on.

company__id__instringOptional

A comma separated list of company primary keys.

Example: 12345,9876
Responses
chevron-right
200

Get successful

application/json
countintegerOptionalExample: 1
nextstring · nullableOptional
previousstring · nullableOptional
get
/contacts/
200

Get successful

Create a contact

post

Add a contact to a specific company in the requester's address book.

The company can be identified either by its pk or its remote_id.

Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Body
uidstring · uuidOptionalExample: 687cddac-dbd2-11ea-9024-0242ac130006
createdstring · date-timeOptional

Date of creation on our server

Example: 2020-12-22T15:31:39.26167Z
first_namestring · max: 200Optional
last_namestring · max: 200Required
emailstring · emailOptional
phone_numberstring · max: 100Optional
fax_numberstring · max: 100Optional
remote_idstringOptional

The id of the contact in your system

Example: CONTACT_123
Responses
post
/contacts/
201

Create successful

Delete a contact

delete
Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Path parameters
uidstringRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its uid then

  • replace the uid value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)

Responses
delete
/contacts/{uid}/
204

Empty body

No content

Read a contact

get
Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Path parameters
uidstringRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its uid then

  • replace the uid value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)

Responses
chevron-right
200

Get successful

application/json
uidstring · uuidOptionalExample: 687cddac-dbd2-11ea-9024-0242ac130006
createdstring · date-timeOptional

Date of creation on our server

Example: 2020-12-22T15:31:39.26167Z
first_namestringOptionalExample: Adèle
last_namestringOptionalExample: Bouvet
emailstring · emailOptionalExample: [email protected]
phone_numberstringOptionalExample: +33600000000
fax_numberstringOptional
remote_idstringOptional

The id of the contact in your system

Example: CONTACT_123
is_managerbooleanOptional

Ignore. Dashdoc technical data.

has_pending_invitebooleanOptional

Ignore. Dashdoc technical data.

is_invitablebooleanOptional

Ignore. Dashdoc technical data.

invitation_linkstring · url · nullableOptional
get
/contacts/{uid}/
200

Get successful

Partially update a contact

patch
Authorizations
AuthenticationstringRequired

Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.

Example of authenticated request

$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Path parameters
uidstringRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its uid then

  • replace the uid value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)

Body
first_namestring · max: 200Optional
last_namestring · max: 200Optional
emailstring · emailOptional
phone_numberstring · max: 100Optional
fax_numberstring · max: 100Optional
Responses
chevron-right
200

Update successful

application/json
uidstring · uuidOptionalExample: 687cddac-dbd2-11ea-9024-0242ac130006
createdstring · date-timeOptional

Date of creation on our server

Example: 2020-12-22T15:31:39.26167Z
first_namestringOptionalExample: Adèle
last_namestringOptionalExample: Bouvet
emailstring · emailOptionalExample: [email protected]
phone_numberstringOptionalExample: +33600000000
fax_numberstringOptional
remote_idstringOptional

The id of the contact in your system

Example: CONTACT_123
is_managerbooleanOptional

Ignore. Dashdoc technical data.

has_pending_invitebooleanOptional

Ignore. Dashdoc technical data.

is_invitablebooleanOptional

Ignore. Dashdoc technical data.

invitation_linkstring · url · nullableOptional
patch
/contacts/{uid}/
200

Update successful

Last updated

Was this helpful?