Skip to main content
Answer

Getting ContactID

  • February 15, 2024
  • 2 replies
  • 128 views

Arash

I am trying to use the frontapp API to get a url that directly links to the contact in frontapp. 
This url typically looks like "https://app.frontapp.com/contacts-manager/contacts/global/{{contact_identifier}}"

 

When I use the API to retrieve the contact information, there is only one id field (starting with crd_), and it does not match the required contact_identifier needed for the url (which is a number)

 

Can anyone tell me how to get the required contact_identifier? Or alternatively, is there a way to link to the contact page with the id from the API?

Best answer by Maxime Haudebert

Hi Arash!

The ID from the URL is related to the contact identifier you’re mentioning, one is base 10 while the other is base 36:

You’ll be able to convert one to the other with that conversion, and will simply need to prepend crd_ to the base 36 ID. For example contact 155370551841 would be crd_1ZDJM529.

This works on most resources from our API.

I hope this helps!

2 replies

Maxime Haudebert
Forum|alt.badge.img+4

Hi Arash!

The ID from the URL is related to the contact identifier you’re mentioning, one is base 10 while the other is base 36:

You’ll be able to convert one to the other with that conversion, and will simply need to prepend crd_ to the base 36 ID. For example contact 155370551841 would be crd_1ZDJM529.

This works on most resources from our API.

I hope this helps!


Arash
  • Author
  • Conversationalist
  • February 15, 2024

Thanks, it works