Docs menu

Get a line's name and photo

GET/v1/profiles/{profile_id}/name-photo

  • Scope messages:read

The name and photo the line shares with each new iMessage contact, so people see who is texting instead of a bare number. Asks the line, so it needs the line working. Team admins change them in the app.

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

Response

200 OKThe name and photo.

  • object"name_photo"required

  • profile_idstringrequired

    prf_…

  • first_namestring or nullrequired

  • last_namestring or nullrequired

  • has_photobooleanrequired

  • photo_urlstring or nullrequired

    A link to the picture, good for 15 minutes.

  • shared_with_new_contactsboolean or nullrequired

Errors

StatusCodeMeans
503line_unavailableThe line is having trouble right now.
503line_timeoutThe line didn't answer in time.
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite