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_idstringrequiredThe line (
prf_…).
Response
200 OKThe name and photo.
object"name_photo"requiredprofile_idstringrequiredprf_…first_namestring or nullrequiredlast_namestring or nullrequiredhas_photobooleanrequiredphoto_urlstring or nullrequiredA link to the picture, good for 15 minutes.
shared_with_new_contactsboolean or nullrequired
Errors
| Status | Code | Means |
|---|---|---|
| 503 | line_unavailable | The line is having trouble right now. |
| 503 | line_timeout | The line didn't answer in time. |
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.